├── README.md ├── SmartLMS ├── Views │ ├── _ViewStart.cshtml │ ├── Manage │ │ └── Index.cshtml │ ├── StudentDashboard │ │ ├── Lectures.cshtml │ │ ├── _ChoicePartial.cshtml │ │ ├── Index.cshtml │ │ ├── Enroll.cshtml │ │ ├── _VideoPartial.cshtml │ │ ├── _QuestionPartial.cshtml │ │ ├── QuizHistory.cshtml │ │ ├── TakeQuiz.cshtml │ │ ├── SeeQuiz.cshtml │ │ ├── Assignments.cshtml │ │ ├── CourseDetails.cshtml │ │ ├── Courses.cshtml │ │ └── SeeLectures.cshtml │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ ├── Index.cshtml │ │ └── Course.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _AdminPartial.cshtml │ │ ├── _LoginPartial.cshtml │ │ ├── _LecturerPartial.cshtml │ │ ├── _StudentPartial.cshtml │ │ └── _Layout.cshtml │ ├── LecturerDashboard │ │ └── Index.cshtml │ ├── Categories │ │ ├── Details.cshtml │ │ ├── Delete.cshtml │ │ ├── Index.cshtml │ │ ├── Create.cshtml │ │ └── Edit.cshtml │ ├── Questions │ │ ├── Details.cshtml │ │ ├── Delete.cshtml │ │ ├── Index.cshtml │ │ ├── Create.cshtml │ │ └── Edit.cshtml │ ├── Courses │ │ ├── Delete.cshtml │ │ ├── Index.cshtml │ │ └── Details.cshtml │ ├── Lectures │ │ ├── Details.cshtml │ │ ├── Delete.cshtml │ │ └── Index.cshtml │ ├── Account │ │ ├── ForgotPassword.cshtml │ │ ├── Register.cshtml │ │ └── RegisterAsLecturer.cshtml │ ├── Quizs │ │ ├── Index.cshtml │ │ └── Details.cshtml │ ├── AnswerChoices │ │ ├── Index.cshtml │ │ └── Create.cshtml │ ├── Assignments │ │ ├── Index.cshtml │ │ └── Details.cshtml │ └── Web.config ├── favicon.ico ├── Scripts │ └── _references.js ├── Global.asax ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── Areas │ ├── HelpPage │ │ ├── Views │ │ │ ├── Help │ │ │ │ ├── DisplayTemplates │ │ │ │ │ ├── ImageSample.cshtml │ │ │ │ │ ├── TextSample.cshtml │ │ │ │ │ ├── SimpleTypeModelDescription.cshtml │ │ │ │ │ ├── ComplexTypeModelDescription.cshtml │ │ │ │ │ ├── CollectionModelDescription.cshtml │ │ │ │ │ ├── InvalidSample.cshtml │ │ │ │ │ ├── KeyValuePairModelDescription.cshtml │ │ │ │ │ ├── DictionaryModelDescription.cshtml │ │ │ │ │ ├── EnumTypeModelDescription.cshtml │ │ │ │ │ ├── Samples.cshtml │ │ │ │ │ ├── ModelDescriptionLink.cshtml │ │ │ │ │ ├── ApiGroup.cshtml │ │ │ │ │ ├── Parameters.cshtml │ │ │ │ │ └── HelpPageApiModel.cshtml │ │ │ │ ├── ResourceModel.cshtml │ │ │ │ ├── Api.cshtml │ │ │ │ └── Index.cshtml │ │ │ ├── _ViewStart.cshtml │ │ │ ├── Shared │ │ │ │ └── _Layout.cshtml │ │ │ └── Web.config │ │ ├── ModelDescriptions │ │ │ ├── SimpleTypeModelDescription.cs │ │ │ ├── DictionaryModelDescription.cs │ │ │ ├── CollectionModelDescription.cs │ │ │ ├── ParameterAnnotation.cs │ │ │ ├── EnumValueDescription.cs │ │ │ ├── KeyValuePairModelDescription.cs │ │ │ ├── IModelDocumentationProvider.cs │ │ │ ├── ModelDescription.cs │ │ │ ├── ComplexTypeModelDescription.cs │ │ │ ├── EnumTypeModelDescription.cs │ │ │ ├── ModelNameAttribute.cs │ │ │ ├── ParameterDescription.cs │ │ │ └── ModelNameHelper.cs │ │ ├── SampleGeneration │ │ │ ├── SampleDirection.cs │ │ │ ├── TextSample.cs │ │ │ ├── InvalidSample.cs │ │ │ └── ImageSample.cs │ │ ├── HelpPageAreaRegistration.cs │ │ ├── ApiDescriptionExtensions.cs │ │ └── Controllers │ │ │ └── HelpController.cs │ └── Admin │ │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── Users │ │ │ ├── Roles.cshtml │ │ │ └── Index.cshtml │ │ ├── Shared │ │ │ └── _Layout.cshtml │ │ └── web.config │ │ ├── Models │ │ ├── CreateUserModel.cs │ │ └── EditUserModel.cs │ │ ├── AdminAreaRegistration.cs │ │ └── Controllers │ │ └── UsersController.cs ├── Content │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── bootstrap │ │ ├── mixins │ │ │ ├── center-block.less │ │ │ ├── size.less │ │ │ ├── opacity.less │ │ │ ├── text-emphasis.less │ │ │ ├── text-overflow.less │ │ │ ├── background-variant.less │ │ │ ├── labels.less │ │ │ ├── resize.less │ │ │ ├── progress-bar.less │ │ │ ├── nav-divider.less │ │ │ ├── reset-filter.less │ │ │ ├── alerts.less │ │ │ ├── tab-focus.less │ │ │ ├── nav-vertical-align.less │ │ │ ├── responsive-visibility.less │ │ │ ├── border-radius.less │ │ │ ├── reset-text.less │ │ │ ├── pagination.less │ │ │ ├── panels.less │ │ │ ├── hide-text.less │ │ │ ├── list-group.less │ │ │ ├── clearfix.less │ │ │ ├── table-row.less │ │ │ ├── image.less │ │ │ └── buttons.less │ │ ├── wells.less │ │ ├── breadcrumbs.less │ │ ├── responsive-embed.less │ │ ├── component-animations.less │ │ ├── close.less │ │ ├── thumbnails.less │ │ ├── utilities.less │ │ ├── pager.less │ │ ├── media.less │ │ ├── mixins.less │ │ ├── labels.less │ │ ├── jumbotron.less │ │ ├── badges.less │ │ ├── bootstrap.less │ │ ├── code.less │ │ ├── grid.less │ │ ├── alerts.less │ │ ├── progress-bars.less │ │ └── pagination.less │ ├── bootstrap-datetimepicker-build.less │ └── Site.css ├── Infrastructure │ ├── Enums │ │ └── AlertType.cs │ ├── BaseTypes │ │ └── SaveableModel.cs │ ├── Mapping │ │ └── AutoMapperConfiguration.cs │ └── Video │ │ └── VideoResult.cs ├── App_Start │ ├── FilterConfig.cs │ ├── RouteConfig.cs │ ├── WebApiConfig.cs │ ├── BundleConfig.cs │ └── NinjectWebCommon.cs ├── Models │ ├── Subscribe.cs │ ├── StudentAssignment.cs │ ├── StudentQuiz.cs │ ├── Category.cs │ ├── Contact.cs │ ├── ADLog.cs │ ├── AnswerChoice.cs │ ├── Question.cs │ ├── Rating.cs │ ├── Certificate.cs │ ├── Lecture.cs │ ├── Assignment.cs │ ├── StudentCourse.cs │ ├── Quiz.cs │ ├── Core │ │ └── IdentityGenerator.cs │ └── Course.cs ├── Startup.cs ├── ViewModels │ ├── CategoryViewModel.cs │ ├── SeeLectureViewModel.cs │ ├── QuizTakingVM.cs │ ├── ExamTakingModel.cs │ └── CourseViewModel.cs ├── Data │ └── Repository │ │ ├── ISmartLMSData.cs │ │ ├── IRepository.cs │ │ └── CommonRepository.cs ├── Controllers │ ├── LecturerDashboardController.cs │ ├── ValuesController.cs │ ├── HomeController.cs │ ├── ManageController.cs │ └── BaseController.cs ├── Global.asax.cs ├── Migrations │ └── 201702180812115_inital_create_db.Designer.cs ├── Results │ └── ChallengeResult.cs ├── Web.Debug.config ├── Web.Release.config └── Properties │ └── AssemblyInfo.cs ├── .gitattributes ├── SmartLMS.Tests ├── Controllers │ ├── HomeControllerTest.cs │ └── ValuesControllerTest.cs ├── Properties │ └── AssemblyInfo.cs ├── packages.config └── App_Start │ └── NinjectWebCommon.cs ├── LICENSE └── SmartLMS.sln /README.md: -------------------------------------------------------------------------------- 1 | # SmartLMS 2 | Learning Management System 3 | -------------------------------------------------------------------------------- /SmartLMS/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /SmartLMS/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arifgit12/SmartLMS/HEAD/SmartLMS/favicon.ico -------------------------------------------------------------------------------- /SmartLMS/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arifgit12/SmartLMS/HEAD/SmartLMS/Scripts/_references.js -------------------------------------------------------------------------------- /SmartLMS/Views/Manage/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Index"; 4 | } 5 | 6 |
5 | @Model.Text 6 |-------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using SmartLMS.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/center-block.less: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | .center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages 3 | Layout = "~/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace SmartLMS.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using SmartLMS.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/opacity.less: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | .opacity(@opacity) { 4 | opacity: @opacity; 5 | // IE8 filter 6 | @opacity-ie: (@opacity * 100); 7 | filter: ~"alpha(opacity=@{opacity-ie})"; 8 | } 9 | -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/text-emphasis.less: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | .text-emphasis-variant(@color) { 4 | color: @color; 5 | a&:hover, 6 | a&:focus { 7 | color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace SmartLMS.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /SmartLMS/Views/StudentDashboard/_ChoicePartial.cshtml: -------------------------------------------------------------------------------- 1 | @model SmartLMS.Models.AnswerChoice 2 | 3 | @Html.RadioButtonFor(modelItem => Model.Choices, Model.AnswerChoiceId) 4 | @Html.DisplayFor(modelItem => Model.Choices) -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/text-overflow.less: -------------------------------------------------------------------------------- 1 | // Text overflow 2 | // Requires inline-block or block for proper styling 3 | 4 | .text-overflow() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/background-variant.less: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | .bg-variant(@color) { 4 | background-color: @color; 5 | a&:hover, 6 | a&:focus { 7 | background-color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/labels.less: -------------------------------------------------------------------------------- 1 | // Labels 2 | 3 | .label-variant(@color) { 4 | background-color: @color; 5 | 6 | &[href] { 7 | &:hover, 8 | &:focus { 9 | background-color: darken(@color, 10%); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/resize.less: -------------------------------------------------------------------------------- 1 | // Resize anything 2 | 3 | .resizable(@direction) { 4 | resize: @direction; // Options: horizontal, vertical, both 5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible` 6 | } 7 | -------------------------------------------------------------------------------- /SmartLMS/Views/StudentDashboard/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Dashboard"; 4 | } 5 | 6 |
Use this area to provide additional information.
12 |Sample not available.
13 | } -------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace SmartLMS.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/alerts.less: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | .alert-variant(@background; @border; @text-color) { 4 | background-color: @background; 5 | border-color: @border; 6 | color: @text-color; 7 | 8 | hr { 9 | border-top-color: darken(@border, 5%); 10 | } 11 | .alert-link { 12 | color: darken(@text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /SmartLMS/Models/Subscribe.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Web; 6 | 7 | namespace SmartLMS.Models 8 | { 9 | public class Subscribe 10 | { 11 | [Key] 12 | [Required] 13 | public string Email { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace SmartLMS.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /SmartLMS/Views/Shared/_AdminPartial.cshtml: -------------------------------------------------------------------------------- 1 | @using SmartLMS.Models 2 | 3 | @if (User.IsInRole(UserRoles.Administrator.ToString())) 4 | { 5 |10 | @Html.ActionLink("Help Page Home", "Index") 11 |
12 |@Model.Documentation
16 |15 | @Html.ActionLink("Help Page Home", "Index") 16 |
17 |28 | @Html.ActionLink("Edit", "Edit", new { id = Model.CategoryId }) | 29 | @Html.ActionLink("Back to List", "Index") 30 |
31 |Possible enumeration values:
5 | 6 || Name | Value | Description |
|---|---|---|
| @value.Name | 15 |
16 | @value.Value 17 | |
18 |
19 | @value.Documentation 20 | |
21 |
Smart LMS is a free web based LMS framework for building great online courses.
4 | 5 |Take the best online courses.
10 |@Html.ActionLink("Courses", "Course", "Home", new { Area = "" }, new { @class= "btn btn-default" })
11 |Instructor can manage courses.
15 |You can easily find and register a course. Thats all. Knowledge is Power.
19 |The user has not been added to any roles yet.
27 | 28 | } 29 |37 | @Html.ActionLink("Edit", "Edit", new { id = Model.QuestionId }) | 38 | @Html.ActionLink("Back to List", "Index") 39 |
40 |Sample not available.
22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 || 20 | @Html.DisplayNameFor(model => model.Quiz.QuizName) 21 | | 22 |23 | @Html.DisplayNameFor(model => model.Marks) 24 | | 25 |
|---|---|
| 31 | @Html.DisplayFor(modelItem => item.Quiz.QuizName) 32 | | 33 |34 | @Html.DisplayFor(modelItem => item.Marks) 35 | | 36 |
44 | @Html.ActionLink("Edit", "Edit", new { id = Model.LectureId }) | 45 | @Html.ActionLink("Back to List", "Index") 46 |
47 | -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/media.less: -------------------------------------------------------------------------------- 1 | .media { 2 | // Proper spacing between instances of .media 3 | margin-top: 15px; 4 | 5 | &:first-child { 6 | margin-top: 0; 7 | } 8 | } 9 | 10 | .media, 11 | .media-body { 12 | zoom: 1; 13 | overflow: hidden; 14 | } 15 | 16 | .media-body { 17 | width: 10000px; 18 | } 19 | 20 | .media-object { 21 | display: block; 22 | 23 | // Fix collapse in webkit from max-width: 100% and display: table-cell. 24 | &.img-thumbnail { 25 | max-width: none; 26 | } 27 | } 28 | 29 | .media-right, 30 | .media > .pull-right { 31 | padding-left: 10px; 32 | } 33 | 34 | .media-left, 35 | .media > .pull-left { 36 | padding-right: 10px; 37 | } 38 | 39 | .media-left, 40 | .media-right, 41 | .media-body { 42 | display: table-cell; 43 | vertical-align: top; 44 | } 45 | 46 | .media-middle { 47 | vertical-align: middle; 48 | } 49 | 50 | .media-bottom { 51 | vertical-align: bottom; 52 | } 53 | 54 | // Reset margins on headings for tighter default spacing 55 | .media-heading { 56 | margin-top: 0; 57 | margin-bottom: 5px; 58 | } 59 | 60 | // Media list variation 61 | // 62 | // Undo default ul/ol styles 63 | .media-list { 64 | padding-left: 0; 65 | list-style: none; 66 | } 67 | -------------------------------------------------------------------------------- /SmartLMS/Content/bootstrap/mixins/image.less: -------------------------------------------------------------------------------- 1 | // Image Mixins 2 | // - Responsive image 3 | // - Retina image 4 | 5 | 6 | // Responsive image 7 | // 8 | // Keep images from scaling beyond the width of their parents. 9 | .img-responsive(@display: block) { 10 | display: @display; 11 | max-width: 100%; // Part 1: Set a maximum relative to the parent 12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching 13 | } 14 | 15 | 16 | // Retina image 17 | // 18 | // Short retina mixin for setting background-image and -size. Note that the 19 | // spelling of `min--moz-device-pixel-ratio` is intentional. 20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) { 21 | background-image: url("@{file-1x}"); 22 | 23 | @media 24 | only screen and (-webkit-min-device-pixel-ratio: 2), 25 | only screen and ( min--moz-device-pixel-ratio: 2), 26 | only screen and ( -o-min-device-pixel-ratio: 2/1), 27 | only screen and ( min-device-pixel-ratio: 2), 28 | only screen and ( min-resolution: 192dpi), 29 | only screen and ( min-resolution: 2dppx) { 30 | background-image: url("@{file-2x}"); 31 | background-size: @width-1x @height-1x; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /SmartLMS/Views/Account/ForgotPassword.cshtml: -------------------------------------------------------------------------------- 1 | @model SmartLMS.Models.ForgotPasswordViewModel 2 | @{ 3 | ViewBag.Title = "Forgot your password?"; 4 | } 5 | 6 || 18 | @Html.DisplayNameFor(model => model.UserName) 19 | | 20 |21 | @Html.DisplayNameFor(model => model.Email) 22 | | 23 |24 | |
|---|---|---|
| 30 | @Html.DisplayFor(modelItem => item.UserName) 31 | | 32 |33 | @Html.DisplayFor(modelItem => item.Email) 34 | | 35 |36 | @Html.ActionLink("Roles", "Users", new { Area = "Admin" }, new { id = item.Id, @class = "btn btn-sm btn-success" }) 37 | | 38 |
28 | Provide a general description of your APIs here. 29 |
30 || 21 | @Html.DisplayNameFor(model => model.CategoryName) 22 | | 23 |24 | |
|---|---|
| 30 | @Html.DisplayFor(modelItem => item.CategoryName) 31 | | 32 |33 | @Html.ActionLink("Edit", "Edit", new { id = item.CategoryId }) | 34 | @Html.ActionLink("Details", "Details", new { id = item.CategoryId }) | 35 | @Html.ActionLink("Delete", "Delete", new { id = item.CategoryId }) 36 | | 37 |
@controllerDocumentation
18 | } 19 || API | Description |
|---|---|
| @api.HttpMethod.Method @api.RelativePath | 28 |
29 | @if (api.Documentation != null)
30 | {
31 | @api.Documentation 32 | } 33 | else 34 | { 35 |No documentation available. 36 | } 37 | |
38 |
| 17 | @Html.DisplayNameFor(model => model.Course.CourseName) 18 | | 19 |20 | @Html.DisplayNameFor(model => model.QuizName) 21 | | 22 |23 | @Html.DisplayNameFor(model => model.Score) 24 | | 25 |26 | |
|---|---|---|---|
| 32 | @Html.DisplayFor(modelItem => item.Course.CourseName) 33 | | 34 |35 | @Html.DisplayFor(modelItem => item.QuizName) 36 | | 37 |38 | @Html.DisplayFor(modelItem => item.Score) 39 | | 40 |41 | @Html.ActionLink("Take Quiz", "TakeQuiz", new { quiz = item.QuizId }, new { @class = "btn btn-success btn-sm" }) 42 | | 43 |
| 26 | @Html.DisplayName("Assignments Name") 27 | | 28 |@Html.DisplayName("Assignments Last Date") | 29 |
|---|---|
| 35 | @Html.DisplayFor(modelItem => assgn.AssignmentName) 36 | | 37 |38 | @Html.DisplayFor(modelItem => assgn.LastDate) 39 | | 40 |
| 19 | @Html.DisplayNameFor(model => model.Course.CourseName) 20 | | 21 |22 | @Html.DisplayNameFor(model => model.LectureName) 23 | | 24 |Action | 25 |
|---|---|---|
| 31 | @Html.DisplayFor(modelItem => item.Course.CourseName) 32 | | 33 |34 | @Html.DisplayFor(modelItem => item.LectureName) 35 | | 36 |37 | @Html.ActionLink("Edit", "Edit", new { id = item.LectureId }) | 38 | @Html.ActionLink("Details", "Details", new { id = item.LectureId }) | 39 | @Html.ActionLink("Delete", "Delete", new { id = item.LectureId }) 40 | | 41 |
| 22 | @Html.DisplayNameFor(model => model.Category.CategoryName) 23 | | 24 |25 | @Html.DisplayNameFor(model => model.CourseName) 26 | | 27 |28 | |
|---|---|---|
| 34 | @Html.DisplayFor(modelItem => item.Category.CategoryName) 35 | | 36 |37 | @Html.DisplayFor(modelItem => item.CourseName) 38 | | 39 |40 | @Html.ActionLink("Edit", "Edit", new { id = item.CourseId }) | 41 | @Html.ActionLink("Details", "Details", new { id = item.CourseId }) | 42 | @Html.ActionLink("Delete", "Delete", new { id = item.CourseId }) 43 | | 44 |
| 28 | @Html.DisplayName("Lecture Name") 29 | | 30 |
|---|
| 36 | @Html.DisplayFor(modelItem => item.LectureName) 37 | | 38 |
| 18 | @Html.DisplayNameFor(model => model.Category.CategoryName) 19 | | 20 |21 | @Html.DisplayNameFor(model => model.CourseName) 22 | | 23 |24 | |
|---|---|---|
| 30 | @Html.DisplayFor(modelItem => item.Category.CategoryName) 31 | | 32 |33 | @Html.DisplayFor(modelItem => item.CourseName) 34 | | 35 |36 | @using (Html.BeginForm("Enroll", "StudentDashboard", new { course = item.CourseId, Area = "" }, FormMethod.Post)) 37 | { 38 | @Html.ActionLink("Details", "Details", "Courses", new { id = item.CourseId, Area = "" }, new { @class = "btn btn-success btn-sm" }) 39 | 40 | @Html.AntiForgeryToken() 41 | 42 | } 43 | | 44 |
| 18 | @Html.DisplayNameFor(model => model.Course.CourseName) 19 | | 20 |21 | @Html.DisplayNameFor(model => model.QuizName) 22 | | 23 |24 | @Html.DisplayNameFor(model => model.Score) 25 | | 26 |Action | 27 |
|---|---|---|---|
| 33 | @Html.DisplayFor(modelItem => item.Course.CourseName) 34 | | 35 |36 | @Html.DisplayFor(modelItem => item.QuizName) 37 | | 38 |39 | @Html.DisplayFor(modelItem => item.Score) 40 | | 41 |42 | @Html.ActionLink("Edit", "Edit", new { id = item.QuizId }) | 43 | @Html.ActionLink("Details", "Details", new { id = item.QuizId }) 44 | | 45 |
49 | @if (User.IsInRole(UserRoles.Lecturer.ToString())) 50 | { 51 | @Html.ActionLink("Edit", "Edit", new { id = Model.CourseId }, new { @class="btn btn-success" }) @: 52 | @Html.ActionLink("Back to List", "Index", null, new { @class = "btn btn-success" }) 53 | } 54 | else 55 | { 56 | @Html.ActionLink("Back to List", "Course", "Home", null, new { @class = "btn btn-success" }) 57 | } 58 |
59 | -------------------------------------------------------------------------------- /SmartLMS/Areas/HelpPage/ApiDescriptionExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Web; 4 | using System.Web.Http.Description; 5 | 6 | namespace SmartLMS.Areas.HelpPage 7 | { 8 | public static class ApiDescriptionExtensions 9 | { 10 | ///| 17 | @Html.DisplayNameFor(model => model.Category.CategoryName) 18 | | 19 |20 | @Html.DisplayNameFor(model => model.CourseName) 21 | | 22 |@Html.DisplayName("Instructor") | 23 |Action | 24 |
|---|---|---|---|
| 30 | @Html.DisplayFor(modelItem => item.Category.CategoryName) 31 | | 32 |33 | @Html.DisplayFor(modelItem => item.CourseName) 34 | | 35 |36 | @Html.DisplayFor(modelItem => item.User.Email) 37 | | 38 |39 | @Html.ActionLink("Details", "CourseDetails", new { courseId = item.CourseId }, new { @class = "btn btn-success" }) 40 | @Html.ActionLink("Quiz", "SeeQuiz", new { courseId = item.CourseId }, new { @class = "btn btn-success" }) 41 | | 42 |
68 | @Html.ActionLink("Edit", "Edit", new { id = Model.QuizId }) | 69 | @Html.ActionLink("Back to List", "Index") 70 |
71 || 21 | @Html.DisplayNameFor(model => model.Question.QuestionText) 22 | | 23 |24 | @Html.DisplayNameFor(model => model.Choices) 25 | | 26 |27 | @Html.DisplayNameFor(model => model.IsCorrect) 28 | | 29 |30 | |
|---|---|---|---|
| 36 | @Html.DisplayFor(modelItem => item.Question.QuestionText) 37 | | 38 |39 | @Html.DisplayFor(modelItem => item.Choices) 40 | | 41 |42 | @Html.DisplayFor(modelItem => item.IsCorrect) 43 | | 44 |45 | @Html.ActionLink("Edit", "Edit", new { id = item.AnswerChoiceId }) | 46 | @Html.ActionLink("Details", "Details", new { id = item.AnswerChoiceId }) | 47 | @Html.ActionLink("Delete", "Delete", new { id = item.AnswerChoiceId }) 48 | | 49 |
| 18 | @Html.DisplayNameFor(model => model.Course.CourseName) 19 | | 20 |21 | @Html.DisplayNameFor(model => model.AssignmentName) 22 | | 23 |24 | @Html.DisplayNameFor(model => model.LastDate) 25 | | 26 |Action | 27 |
|---|---|---|---|
| 33 | @Html.DisplayFor(modelItem => item.Course.CourseName) 34 | | 35 |36 | @Html.DisplayFor(modelItem => item.AssignmentName) 37 | | 38 |39 | @Html.DisplayFor(modelItem => item.LastDate) 40 | | 41 |42 | @Html.ActionLink("Edit", "Edit", new { id = item.AssignmentId }) | 43 | @Html.ActionLink("Details", "Details", new { id = item.AssignmentId }) | 44 | @Html.ActionLink("Delete", "Delete", new { id = item.AssignmentId }) 45 | | 46 |
56 | @Html.ActionLink("Edit", "Edit", new { id = Model.AssignmentId }) | 57 | @Html.ActionLink("Back to List", "Index") 58 |
59 || 22 | @Html.DisplayNameFor(model => model.Quiz.Course.CourseName) 23 | | 24 |25 | @Html.DisplayNameFor(model => model.Quiz.QuizName) 26 | | 27 |28 | @Html.DisplayNameFor(model => model.QuestionText) 29 | | 30 |31 | |
|---|---|---|---|
| 37 | @Html.DisplayFor(modelItem => item.Quiz.Course.CourseName) 38 | | 39 |40 | @Html.DisplayFor(modelItem => item.Quiz.QuizName) 41 | | 42 |43 | @Html.DisplayFor(modelItem => item.QuestionText) 44 | | 45 |46 | @Html.ActionLink("Edit", "Edit", new { id = item.QuestionId }) | 47 | @Html.ActionLink("Details", "Details", new { id = item.QuestionId }) | 48 | @Html.ActionLink("Delete", "Delete", new { id = item.QuestionId }) 49 | | 50 |
| Name | Description | Type | Additional information |
|---|---|---|---|
| @parameter.Name | 20 |
21 | @parameter.Documentation 22 | |
23 | 24 | @Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription }) 25 | | 26 |
27 | @if (parameter.Annotations.Count > 0)
28 | {
29 | foreach (var annotation in parameter.Annotations)
30 | {
31 | @annotation.Documentation 32 | } 33 | } 34 | else 35 | { 36 |None. 37 | } 38 | |
39 |
None.
47 | } 48 | 49 | -------------------------------------------------------------------------------- /SmartLMS/Views/Questions/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model SmartLMS.Models.Question 2 | 3 | @{ 4 | ViewBag.Title = "Edit Question"; 5 | } 6 | 7 |@description.Documentation
13 | 14 |@Model.RequestDocumentation
22 | 23 | @if (Model.RequestModelDescription != null) 24 | { 25 | @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription }) 26 | if (Model.RequestBodyParameters != null) 27 | { 28 | @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters") 29 | } 30 | } 31 | else 32 | { 33 |None.
34 | } 35 | 36 | @if (Model.SampleRequests.Count > 0) 37 | { 38 |@description.ResponseDescription.Documentation
47 | 48 | @if (Model.ResourceDescription != null) 49 | { 50 | @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription }) 51 | if (Model.ResourceProperties != null) 52 | { 53 | @Html.DisplayFor(m => m.ResourceProperties, "Parameters") 54 | } 55 | } 56 | else 57 | { 58 |None.
59 | } 60 | 61 | @if (Model.SampleResponses.Count > 0) 62 | { 63 |