public IActionResult EditCourses([FromBody] CoursesActionModel model)
 {
     try
     {
         var coure = new Models.Course
         {
             Id            = model.Id,
             Name          = model.NameCourses,
             Price         = model.Price,
             Description   = model.Description,
             NumberCredits = model.NumberCredits,
             Donors        = model.Donors,
             UrlImage      = model.UrlImage,
             DateStart     = model.DateStart,
             DateEnd       = model.DateEnd,
             AccountId     = model.idTeacher,
             CategoryId    = model.idCategory,
             CetificateId  = model.idCetificate
         };
         bool result = _courses.Edit(coure);
         return(new ObjectResult(result));
     }
     catch
     {
         return(new ObjectResult(false));
     }
 }