示例#1
0
 public static LittleParentMapModel CreateLittleParentMap(LittleParentMapModel mapModel)
 {
     using (var _context = new bbbsDbContext())
     {
         var newMap = _context.Add(new LittleParentMap
         {
             LittleId = mapModel.LittleId,
             ParentId = mapModel.ParentId
         });
         _context.SaveChanges();
         mapModel.Id = newMap.Entity.Id;
         return(mapModel);
     }
 }
示例#2
0
 public LittleParentMapModel CreateLittleParentMap([FromBody] LittleParentMapModel inputModel)
 {
     return(UserMappingService.CreateLittleParentMap(inputModel));
 }
示例#3
0
 internal static LittleParentMapModel CreateLittleParentMap(LittleParentMapModel inputModel)
 {
     return(UserMappingRepository.CreateLittleParentMap(inputModel));
 }