public async Task <ResultObject> DeleteuserBranchRoleAsync(int id) { try { await userAppService.DeleteUserRoleAsync(new UserBranchRoleDto { 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" } } }); } }