Ejemplo n.º 1
0
        public SubmissionScopeModel Create(SubmissionScopeModel submissionScopeModel)
        {
            var result = _repository.Create(new DAL.Entities.SubmissionScope
            {
                CompanyName = submissionScopeModel.CompanyName,
                Date        = submissionScopeModel.Date,
                FilialName  = submissionScopeModel.FilialName,
                ReportId    = submissionScopeModel.ReportId
            });

            return(new SubmissionScopeModel
            {
                CompanyName = result.CompanyName,
                Date = result.Date,
                FilialName = result.FilialName,
                ReportId = result.ReportId
            });
        }
 public SubmissionScopeModel Post([FromBody] SubmissionScopeModel value)
 {
     return(_service.Create(value));
 }