private ActionResult RedirectToIndexController(OperationStatus operationStatus)
 => Ok(JsonConvert.SerializeObject(Url.Link("Default", new
 {
     Controller = "CourseCategory",
     Action     = "Index",
     statusCode = operationStatus.Map()
 })));
 private ActionResult RedirectToDetailsController(int courseId, OperationStatus operationStatus)
 => Ok(JsonConvert.SerializeObject(Url.Link("Default", new
 {
     Controller = "CourseCategory",
     Action     = "Details",
     courseId   = courseId,
     statusCode = operationStatus.Map()
 })));
Esempio n. 3
0
 private ActionResult RedirectToMainController(int courseId, OperationStatus operationStatus)
 => Ok(JsonConvert.SerializeObject(Url.Link("Default", new
 {
     Controller = "StudyMaterial",
     Action     = "Course",
     courseId,
     statusCode = operationStatus.Map()
 })));