예제 #1
0
        public JsonResult Create(IFormCollection collection)
        {
            MonthReportCreateDto entity = new MonthReportCreateDto();

            TryUpdateModelAsync(entity);

            var result = service.Create(entity, AppUser);

            return(Json(result));
        }
예제 #2
0
        public IActionResult Create()
        {
            var today  = DateTime.Today;
            var entity = new MonthReportCreateDto
            {
                Year    = today.Year,
                Month   = today.Month,
                SalerId = 0
            };

            InitUI();
            return(View(entity));
        }