Пример #1
0
        public ReparoVO Create(ReparoVO Reparo)
        {
            var ReparoEntity = _converter.Parse(Reparo);

            ReparoEntity = _repository.Create(ReparoEntity);
            return(_converter.Parse(ReparoEntity));
        }
Пример #2
0
 public IActionResult Post([FromBody] ReparoVO reparo)
 {
     if (reparo == null)
     {
         return(BadRequest());
     }
     return(new OkObjectResult(_reparoBusiness.Create(reparo)));
 }