//one to dal
 public static StatusDose ToDAL(StatusDoseDTO item)
 {
     return(new StatusDose()
     {
         Description = item.DescriptionStatusDose,
         Id = item.IdDose
     });
 }
Beispiel #2
0
        public static List <InventDoseDTO> GetCurrentInvents()
        {
            StatusDoseDTO     status  = StatusDoseBL.GetByDescription("הוזמן");
            List <InventDose> invents = InventDoseDAL.GetAll().
                                        Where(invent => invent.IdStatusDose == status.IdDose).ToList();

            return(InventDoseCast.ListToDTO(invents));
        }
Beispiel #3
0
 public static void Add(StatusDoseDTO employeesTypes)
 {
     StatusDoseDAL.Add(StatusDoseCast.ToDAL(employeesTypes));
 }
Beispiel #4
0
 public static void Delete(StatusDoseDTO employeesTypes)
 {
     StatusDoseDAL.Delete(StatusDoseCast.ToDAL(employeesTypes));
 }
Beispiel #5
0
 public static void Update(StatusDoseDTO employeesTypes)
 {
     StatusDoseDAL.Update(StatusDoseCast.ToDAL(employeesTypes));
 }