public AutoVersionViewModel GetAutoVersionById(int Id) { AutoVersion autoVersion = repository.GetById(Id); return(autoMapper.Map <AutoVersionViewModel>(autoVersion)); //string ne = auto.AutoManufacturer.AutoManufacturerName; //return null; }
public static object SetAutoVersionMode(IResource resource, AutoVersion autoVersionMode, LockCollection locks) { try { resource.SetAutoVersion(autoVersionMode, locks[resource]); return(null); } catch (Exception e) { return(e); } }
/// <summary> /// Sets autoversioning mode for the file. /// </summary> /// <param name="value">Autoversioning mode.</param> public void SetAutoVersion(AutoVersion value) { SetDbField("AutoVersion", value); }