// PUT: api/LectionResults/5
 public IHttpActionResult Put(int id, LectionResultModel value)
 {
     if (id != value.LectionResultID)
     {
         return(BadRequest());
     }
     try
     {
         LectionResultDTO edited = map.Map <LectionResultDTO>(value);
         _db.LectionService.EditArchievedLection(edited);
     }
     catch
     {
         if (!LectionResultExists(id))
         {
             return(NotFound());
         }
         else
         {
             throw;
         }
     }
     return(StatusCode(HttpStatusCode.NoContent));
 }
 public IHttpActionResult Post(LectionResultModel value)
 {
     _db.PerformanceService.AddLectionResult(map.Map <LectionResultDTO>(value));
     return(CreatedAtRoute("DefaultApi", new { }, value));
 }
        // GET: api/LectionResults/5
        public LectionResultModel Get(int id)
        {
            LectionResultModel result = map.Map <LectionResultModel>(_db.PerformanceService.GetLectionResult(id));

            return(result);
        }