This is my edit page. I want the default value to be the time received from the database called @l.begginingTime, which will the same as one of the values in the dropdown.
How do I do this?
@foreach (var l in Model.Cleaner.TimeAvailables)
{
<select class="form-control dropDown" name="Sunday1From" value="@l.BegginingTime">
<option value="">Unavailable</option>
<option value="00:00:00">12:00 AM</option>
<option value="00:30:00">12:30 AM</option>
<option value="01:00:00">1:00 AM</option>
<option value="01:30:00">1:30 AM</option>
<option value="02:00:00">2:00 AM</option>
<option value="02:30:00">2:30 AM</option>
</select>
</td>