예제 #1
0
        public List <Staff> GetEmployees()
        {
            List <Staff> Staffs = new List <Staff>();

            Staffs = client.GetEmployees().Select(x => Convertation.ConvertStaffToDal(x)).ToList();

            return(Staffs);
        }
예제 #2
0
        public List <WorkPosition> GetListPositions()
        {
            List <WorkPosition> positions = new List <WorkPosition>();

            foreach (var item in client.GetListPositions())
            {
                positions.Add(Convertation.ConvertPositionToDal(item));
            }

            return(positions);
        }
예제 #3
0
 public void UpdateMaterials(Material materials)
 {
     client.UpdateMaterials(Convertation.ConvertMaterialsToDB(materials));
 }
예제 #4
0
 public void AddMaterialsToDB(Material materials)
 {
     client.AddMaterials(Convertation.ConvertMaterialsToDB(materials));
 }
예제 #5
0
 public void AddEmployee(Staff staff)
 {
     client.AddEmployee(Convertation.ConvertStaffToWCF(staff));
 }
예제 #6
0
 public List <string> WritingOff(List <WriteOffMaterials> writeOffMaterials)
 {
     return(client.WritingOff(writeOffMaterials.Select(x => Convertation.ConvertWriteOffToBD(x)).ToArray()).ToList());
 }
예제 #7
0
 public List <Material> GetMaterials()
 {
     return(client.GetListMaterials().Select(x => Convertation.ConvertWcfMaterials(x)).ToList());
 }
예제 #8
0
 public ICollection <Info> GetLoggs()
 {
     return(client.GetLoggs().Select(x => Convertation.ConvertToBllInfo(x)).ToList());
 }