public bool Delete(Guid id, Guid apiUserId) { Models.Domain.Product model = this.GetById(id, apiUserId); _productDatabaseContext.Remove(model); int result = _productDatabaseContext.SaveChanges(); return(Convert.ToBoolean(result)); }
public bool Delete(Guid id) { Test test = this.GetById(id); _productDatabaseContext.Remove(test); int result = _productDatabaseContext.SaveChanges(); return(Convert.ToBoolean(result)); }
public bool Delete(Guid id) { ProductTranslation model = this.GetById(id); _productDatabaseContext.Remove(model); int result = _productDatabaseContext.SaveChanges(); return(Convert.ToBoolean(result)); }
public bool Delete(Guid id, Guid apiUserId) { ProductCategory obj = this.GetById(id, apiUserId); _productDatabaseContext.Remove(obj); int result = _productDatabaseContext.SaveChanges(); return(Convert.ToBoolean(result)); }