public ResponseResult <Cookie> Reg([FromBody] Owner owner) { ResponseResult <Cookie> result = new ResponseResult <Cookie>(); try { OwnerService ownerService = new OwnerService(); result.Result = ownerService.AddOwner(owner); } catch (Exception e) { result.IsSuccess = false; result.Message = e.Message; } return(result); }
public Cookie Reg([FromBody] Owner owner) { OwnerService ownerService = new OwnerService(); return(ownerService.AddOwner(owner)); }