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