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 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; }