public IActionResult EditProblems([FromBody] EditProblemsViewModel model) { if (ModelState.IsValid) { var problems = Mapper.Map <EditProblemsViewModel, Problems>(model); problems.LastModifiedDateUtc = System.DateTime.UtcNow; problems.LastModifiedBy = 1; _problemsService.EditProblems(problems); } return(new HttpStatusCodeResult(200)); }