コード例 #1
0
        public static VegetableDTO MapToDTO(VegetableDAO vegetable)
        {
            var v = new VegetableDTO();

            v.Id     = vegetable.Id;
            v.Name   = vegetable.Name;
            v.Active = vegetable.Active;

            return(v);
        }
コード例 #2
0
 public bool DeleteVeDeleteable(VegetableDTO item)
 {
     return(pssc.DeleteVegetable(VegetableMapper.MapToDAO(item)));
 }
コード例 #3
0
 public bool InsertVegetable(VegetableDTO item)
 {
     return(pssc.InsertVegetable(VegetableMapper.MapToDAO(item)));
 }
コード例 #4
0
 public bool ChangeVeChangeable(VegetableDTO item)
 {
     return(pssc.ChangeVegetable(VegetableMapper.MapToDAO(item)));
 }