Beispiel #1
0
        public mRole RoleUpdate(mRole mrole)
        {
            Role role = role_repo.Get(d => d.id == mrole.Id);

            mrole.ToDb(role);
            SubmitChanges();
            return(new mRole(role));
        }
Beispiel #2
0
        public int RoleAdd(mRole mrole)
        {
            Role role = new Role();

            role_repo.Add(mrole.ToDb(role));
            SubmitChanges();
            return(role.id);
        }
Beispiel #3
0
 public mRole RoleUpdate(mRole mrole)
 {
     Role role = role_repo.Get(d => d.id == mrole.Id);
     mrole.ToDb(role);
     SubmitChanges();
     return new mRole(role);
 }
Beispiel #4
0
 public int RoleAdd(mRole mrole)
 {
     Role role = new Role();
     role_repo.Add(mrole.ToDb(role));
     SubmitChanges();
     return role.id;
 }