コード例 #1
0
        private Presentation MapearPresentation(PresentationInputModel presentationInputModel)
        {
            var presentation = new Presentation
            {
                Measure = presentationInputModel.Measure,
                Name    = presentationInputModel.Name
            };


            return(presentation);
        }
コード例 #2
0
        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));
            }
        }