예제 #1
0
 /// <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);
 }
예제 #2
0
 public static void Delete(Drive obj)
 {
     repository.Delete(obj);
 }