示例#1
0
 public bool Add(UavType type)
 {
     try
     {
         _db.UavTypes.Add(type);
         return true;
     }
     catch
     {
         return false;
     }
    
 }
示例#2
0
 protected UavTypeDTO ToUavTypeDTO(UavType type)
 {
     Mapper.CreateMap<UavType, UavTypeDTO>();
     return Mapper.Map<UavType, UavTypeDTO>(type);
 }