private Presentation MapearPresentation(PresentationInputModel presentationInputModel) { var presentation = new Presentation { Measure = presentationInputModel.Measure, Name = presentationInputModel.Name }; return(presentation); }
public ActionResult <PresentationViewModel> Post(PresentationInputModel presentationInputModel) { Presentation presentation = MapearPresentation(presentationInputModel); var response = _presentationService.save(presentation); if (response.Error == false) { return(Ok(response.Object)); } else { return(BadRequest(response.Menssage)); } }