예제 #1
0
 /// <summary>
 /// Method whose purpose is to update 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 Update(DriveModel drive)
 {
     return(_driveRepository.Update(drive) > 0 ? true : false);
 }
예제 #2
0
 public static void Update(Drive obj)
 {
     repository.Update(obj);
 }