コード例 #1
0
 private RespawnDTO Insert(RespawnDTO respawn, OpenNosContext context)
 {
     try
     {
         Respawn entity = new Respawn()
         {
             CharacterId = respawn.CharacterId
         };
         context.Respawn.Add(entity);
         context.SaveChanges();
         return(_mapper.Map <RespawnDTO>(entity));
     }
     catch (Exception e)
     {
         Logger.Error(e);
         return(null);
     }
 }