public ActionResult <Target> GetMissionById(int id)
        {
            var mission = _missionRepository.GetById(id);

            if (mission != null)
            {
                return(Ok(mission));
            }

            return(NotFound());
        }
 public MissionEntity GetById(int id)
 {
     if (id < 0)
     {
         throw new ArgumentException();
     }
     return(missionRepository.GetById(id).GetBllEntity());
 }