Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            _calendar = new DatefaCalendar();
            var thisMonth = _calendar.GetMonthView(1399, PersianMonth.Bahman);

            System.Console.Read();
        }
Ejemplo n.º 2
0
        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)
                       ));
        }