public Result <IList <ARN> > GetAll() { var result = new Result <IList <ARN> >(); ARNService ARNService = new ARNService(); var lstClient = ARNService.Get(); result.Value = (IList <ARN>)lstClient; result.IsSuccess = true; return(result); }
public Result Delete(ARN ARN) { var result = new Result(); try { ARNService ARNService = new ARNService(); ARNService.Delete(ARN); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }