Exemplo n.º 1
0
 public JsonResult Subscribe([FromBody] Courses.Domain.Entities.Course course)
 {
     try
     {
         var ret = _courseApp.CourseSubscription(course);
     }
     catch (Exception e)
     {
         //TODO: IMPLEMENT LOG AND ERRO TREATMENT
         return(Json("Error"));
     }
     return(Json("OK"));
 }