public List <Staff> GetEmployees() { List <Staff> Staffs = new List <Staff>(); Staffs = client.GetEmployees().Select(x => Convertation.ConvertStaffToDal(x)).ToList(); return(Staffs); }
public List <WorkPosition> GetListPositions() { List <WorkPosition> positions = new List <WorkPosition>(); foreach (var item in client.GetListPositions()) { positions.Add(Convertation.ConvertPositionToDal(item)); } return(positions); }
public void UpdateMaterials(Material materials) { client.UpdateMaterials(Convertation.ConvertMaterialsToDB(materials)); }
public void AddMaterialsToDB(Material materials) { client.AddMaterials(Convertation.ConvertMaterialsToDB(materials)); }
public void AddEmployee(Staff staff) { client.AddEmployee(Convertation.ConvertStaffToWCF(staff)); }
public List <string> WritingOff(List <WriteOffMaterials> writeOffMaterials) { return(client.WritingOff(writeOffMaterials.Select(x => Convertation.ConvertWriteOffToBD(x)).ToArray()).ToList()); }
public List <Material> GetMaterials() { return(client.GetListMaterials().Select(x => Convertation.ConvertWcfMaterials(x)).ToList()); }
public ICollection <Info> GetLoggs() { return(client.GetLoggs().Select(x => Convertation.ConvertToBllInfo(x)).ToList()); }