public IActionResult Delete(Guid entityid) { var rowsAffect = _dataAccessBaseServices.Delete(entityid); if (rowsAffect > 0) { return(Ok(rowsAffect)); } else { return(NoContent()); } }
public IActionResult Delete(Guid entityId) { try { var rowAffects = _baseServices.Delete(entityId); if (rowAffects > 0) { return(Ok("Xoa thanh cong")); } else { return(NoContent()); } } catch (Exception) { throw; } }
public IActionResult Delete(Guid id) { return(Ok(_baseServices.Delete(id))); }
public async Task <bool> Delete(T model) { return(await baseDal.Delete(model)); }