public int RoleAdd(mRole newrole) { try { return user_sub.RoleAdd(newrole); } catch (Exception) { return 0; } }
public mRole RoleUpdate(mRole mrole) { Role role = role_repo.Get(d => d.id == mrole.Id); mrole.ToDb(role); SubmitChanges(); return(new mRole(role)); }
public int RoleAdd(mRole mrole) { Role role = new Role(); role_repo.Add(mrole.ToDb(role)); SubmitChanges(); return(role.id); }
public mRole RoleUpdate(mRole uprole) { try { return(user_sub.RoleUpdate(uprole)); } catch (Exception) { return(null); } }
public int RoleAdd(mRole newrole) { try { return(user_sub.RoleAdd(newrole)); } catch (Exception) { return(0); } }
public mRole RoleUpdate(mRole uprole) { try { return user_sub.RoleUpdate(uprole); } catch (Exception) { return null; } }
public mRole RoleUpdate(mRole mrole) { Role role = role_repo.Get(d => d.id == mrole.Id); mrole.ToDb(role); SubmitChanges(); return new mRole(role); }
public int RoleAdd(mRole mrole) { Role role = new Role(); role_repo.Add(mrole.ToDb(role)); SubmitChanges(); return role.id; }