public async Task <ResponseBase> EmployeeCourseEnroll([FromQuery] int courseId, DateTime dateCreated) { try { GetUserId(); await _courseAppService.CreateEmployeeCourse(courseId, UserId, (int)(CourseStatusEnum.Enrolled), dateCreated); return(new ResponseBase() { IsSuccess = true, ErrorDetails = null }); } catch (Exception ex) { LogError(ex); return(new ResponseBase() { ErrorDetails = Error(), IsSuccess = false }); } }