public async Task <ResultObject> DeleteUserBranchAsync(int id) { try { await userAppService.DeleteUserBrancheAsync(new UserBranchesDto { ID = id }); return(new ResultObject { Result = true, ServerErrors = null }); } catch (Exception ex) { return(new ResultObject { Result = false, ServerErrors = new[] { new ServerErr() { Hint = ex.Message, Type = "Err on Delete" } } }); } }