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")); }
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")); }