public ReparoVO Create(ReparoVO Reparo) { var ReparoEntity = _converter.Parse(Reparo); ReparoEntity = _repository.Create(ReparoEntity); return(_converter.Parse(ReparoEntity)); }
public IActionResult Post([FromBody] ReparoVO reparo) { if (reparo == null) { return(BadRequest()); } return(new OkObjectResult(_reparoBusiness.Create(reparo))); }