public IActionResult DeleteProblems([FromBody] EditProblemsViewModel model) { if (ModelState.IsValid) { var problems = Mapper.Map <EditProblemsViewModel, Problems>(model); _problemsService.DeleteProblems(problems); } return(new HttpStatusCodeResult(200)); }