static void Main(string[] args) { _calendar = new DatefaCalendar(); var thisMonth = _calendar.GetMonthView(1399, PersianMonth.Bahman); System.Console.Read(); }
public IViewComponentResult Invoke(int?year = null, int?month = null) { bool isNow = year == null || month == null; var datefa = new DatefaCalendar(); if (isNow) { return(View(model: datefa.GetCurrentMonthView())); } return(View( datefa.GetMonthView( year.Value, (PersianMonth)month.Value) )); }