/// <summary> /// Method whose purpose is to insert a /// new drive record into the database. /// </summary> /// <param name="drive"> /// Newly created drive model object. /// </param> /// <returns> /// Returns true if the query is successfully /// executed otherwise returns false. /// </returns> public bool Insert(DriveModel drive) { return(_driveRepository.Insert(drive) > 0 ? true : false); }
public static Drive Insert(Drive obj) { return(repository.Insert(obj)); }