public void Delete(DalUserRole e) { var role = e.ToOrmUserRole(); role = _context.Set<UserRole>().Single(u => u.Id == role.Id); _context.Set<UserRole>().Remove(role); }
public void Update(DalUserRole e) { throw new NotImplementedException(); }
public void Create(DalUserRole e) { _context.Set<UserRole>().Add(e.ToOrmUserRole()); }