// //////////////////////////////////////////////////////////////////////// // PUBLIC METHODS // /// <summary> /// Insert direct to DB /// </summary> /// <param name="code">code</param> /// <param name="description">description</param> /// <param name="vin">vin</param> /// <param name="manufacturer">manufacturer</param> /// <param name="model">model</param> /// <param name="year_">year_</param> /// <param name="isTowable">isTowable</param> /// <param name="companyLevelId">companyLevelId</param> /// <param name="acquisitionDate">acquisitionDate</param> /// <param name="dispositionDate">dispositionDate</param> /// <param name="dispositionReason">dispositionReason</param> /// <param name="ownerType">ownerType</param> /// <param name="ownerCountry">ownerCountry</param> /// <param name="ownerState">ownerState</param> /// <param name="ownerName">ownerName</param> /// <param name="ownerContact">ownerContact</param> /// <param name="qualifiedDate">qualifiedDate</param> /// <param name="notQualifiedDate">notQualifiedDate</param> /// <param name="notQualifiedExplain">notQualifiedExplain</param> /// <param name="state">state</param> /// <param name="type">type</param> /// <param name="deleted">deleted</param> /// <param name="companyId">companyId</param> /// <param name="notes">notes</param> /// <param name="categories">categories</param> /// <param name="insuranceClass">insuranceClass</param> /// <param name="insuranceClassRyderSpecified">insuranceClassRyderSpecified</param> /// <param name="purchasePrice">purchasePrice</param> /// <param name="scrapDate">scrapDate</param> /// <param name="saleProceeds">saleProceeds</param> /// <param name="libraryCategoriesId">libraryCategoriesId</param> /// <returns>unitId</returns> public int InsertDirect(string code, string description, string vin, string manufacturer, string model, string year_, bool isTowable, int companyLevelId, DateTime? acquisitionDate, DateTime? dispositionDate, string dispositionReason, string ownerType, Int64? ownerCountry, Int64? ownerState, string ownerName, string ownerContact, DateTime? qualifiedDate, DateTime? notQualifiedDate, string notQualifiedExplain, string state, string type, bool deleted, int companyId, string notes, string categories, string insuranceClass, string insuranceClassRyderSpecified, decimal? purchasePrice, DateTime? scrapDate, decimal? saleProceeds, int? libraryCategoriesId) { // Get unitId and insert unit UnitsGateway unitsGateway = new UnitsGateway(null); int unitId = unitsGateway.Insert(code, description, vin, manufacturer, model, year_, isTowable, companyLevelId, acquisitionDate, dispositionDate, dispositionReason, ownerType, ownerCountry, ownerState, ownerName, ownerContact, qualifiedDate, notQualifiedDate, notQualifiedExplain, state, type, deleted, companyId, notes, categories, insuranceClass, insuranceClassRyderSpecified, purchasePrice, scrapDate, saleProceeds, libraryCategoriesId); return unitId; }