public Result Update(Expenses Expenses) { var result = new Result(); try { ExpensesService ExpensesService = new ExpensesService(); ExpensesService.Update(Expenses); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }