public ResponseResult <Owner> Get(int id) { ResponseResult <Owner> result = new ResponseResult <Owner>(); try { OwnerService ownerService = new OwnerService(); result.Result = ownerService.GetOwner(id); } catch (Exception e) { result.IsSuccess = false; result.Message = e.Message; } return(result); }
public Owner Get(int id) { OwnerService ownerService = new OwnerService(); return(ownerService.GetOwner(id)); }