Commit e21c9ad9 authored by Vinodkumar Chindam's avatar Vinodkumar Chindam

Added current month property.

parent f384d927
Pipeline #47542 passed with stages
in 28 seconds
......@@ -64,6 +64,8 @@ namespace PharmaStoreReport.Controllers
Text = (DateTime.Today.Year - i).ToString(),
Value = (DateTime.Today.Year - i).ToString()
}).ToList(), token);
model.Months = GetMonthsLoad(DateTime.Today.Year);
model.CurrentMonth = DateTime.Today.Month.ToString();
/// CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1);
return View(model);
}
......
......@@ -16,12 +16,14 @@ namespace PharmaStoreReport.Models
public HomeModel()
{
Years = new List<SelectListItem>();
Months = new List<SelectListItem>();
}
/// <summary>
/// Years Dropdown
/// </summary>
public List<SelectListItem> Years { get; set; }
public List<SelectListItem> Months { get; set; }
public string CurrentMonth { get; set; }
public Uploadform HomeDetails { get; set; }
}
/// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment