public UserInfo Delete(UserInfo entity) { UserInfo entityRemoved = _contex.Remove <UserInfo>(entity).Entity; _contex.SaveChanges(); return(entityRemoved); }
public Product Delete(Product entity) { Product entityRemoved = _ctx.Remove <Product>(entity).Entity; _ctx.SaveChanges(); return(entityRemoved); }
public BookingOrder Delete(BookingOrder entity) { BookingOrder booking = _ctx.Remove <BookingOrder>(entity).Entity; _ctx.SaveChanges(); return(booking); }
public Category Delete(Category entity) { Category deletedCategory = _ctx.Remove <Category>(entity).Entity; _ctx.SaveChanges(); return(deletedCategory); }
public LoginUser Delete(LoginUser entity) { LoginUser userToDelete = _ctx.Remove(Read(entity.Id)).Entity; _ctx.SaveChanges(); return(userToDelete); }