/// <summary> /// Проверка персонального идентификатора консультанта /// </summary> /// <param name="employee">Сотрудник</param> /// <returns></returns> private bool CheckPersonalId(ShopAssistant employee) { for (int i = 0; i < Workers.Count; i++) { if (Workers[i] is ShopAssistant) { var worker = (ShopAssistant)Workers[i]; if (worker.PersonalId == employee.PersonalId) { return(false); } } } return(true); }
public void SetParam(List <Parameter> paramList, ShopAssistant prototype) { new ShopAssistantParameters().setParameters(paramList, prototype); }
public List <Parameter> GetParam(ShopAssistant worker) { return(new ShopAssistantParameters().getParameters(worker)); }