/// <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); }
public static void Update(Drive obj) { repository.Update(obj); }