public JsonResult Create(IFormCollection collection) { MonthReportCreateDto entity = new MonthReportCreateDto(); TryUpdateModelAsync(entity); var result = service.Create(entity, AppUser); return(Json(result)); }
public IActionResult Create() { var today = DateTime.Today; var entity = new MonthReportCreateDto { Year = today.Year, Month = today.Month, SalerId = 0 }; InitUI(); return(View(entity)); }