/// <summary> /// Method whose purpose is to delete an existing /// drive record from the database. /// </summary> /// <param name="drive"> /// Existing drive model object. /// </param> /// <returns> /// Returns true if the query is successfully /// executed otherwise returns false. /// </returns> public bool Delete(DriveModel drive) { return(_driveRepository.Delete(drive) > 0 ? true : false); }
public static void Delete(Drive obj) { repository.Delete(obj); }