public JsonResult Update([FromBody] FlatTypeVM model) { var flatType = Mapper.Map <FlatType>(model); _flatTypeService.Update(flatType); _flatTypeService.SaveChanges(); return(Json(_flatTypeService.Get(flatType.Id))); }