public ActionResult <Result> Create([FromBody] CatResource resource) { Cat cat = _mapper.Map <CatResource, Cat>(resource); Result createResult = _catService.CreateNewCat(cat, User.Identity.Name); return(Ok(createResult)); }
public ActionResult <Result> Create([FromBody] CatResource resource) { Cat cat = _mapper.Map <CatResource, Cat>(resource); Result createResult = _catService.CreateNewCat(cat, User.Identity.Name); return(Ok(createResult)); }