diff --git a/Course-Management-System.API/Controllers/AdminController.cs b/Course-Management-System.API/Controllers/AdminController.cs index c18289617c06bc0c5abf5f0fc76c0839be866ccb..2038db32addc2f28ea979b8c9150ea1152cf8e04 100644 --- a/Course-Management-System.API/Controllers/AdminController.cs +++ b/Course-Management-System.API/Controllers/AdminController.cs @@ -1,11 +1,11 @@ using System.Security.Claims; -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Utility.CustomResponseTypes; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace Course_Management_System.API.Controllers; +namespace CourseManagementSystem.API.Controllers; [Route("api/[controller]/[action]")] [ApiController] @@ -18,24 +18,28 @@ public class AdminController : ControllerBase _adminService = adminService; _userId = User.FindFirstValue(ClaimTypes.NameIdentifier); } + [HttpPut] [Authorize(Roles = "Admin")] public CustomResponse UpdateInstructor(string userId,bool isActive) { return _adminService.UpdateInstructor(_userId,userId, isActive); } + [HttpPut] [Authorize(Roles = "Admin")] public CustomResponse UpdateStudent(string userId,bool isActive) { return _adminService.UpdateStudent(_userId,userId, isActive); } + [HttpDelete] [Authorize(Roles = "Admin")] public CustomResponse RemoveInstructor(string userId) { return _adminService.RemoveInstructor(userId); } + [HttpDelete] [Authorize(Roles = "Admin")] public CustomResponse RemoveStudent(string userId) diff --git a/Course-Management-System.API/Controllers/AuthenticationController.cs b/Course-Management-System.API/Controllers/AuthenticationController.cs index 54b9e6e295f17d8b89a518dd73754dff16a0b6ff..e554904114fb2445163f931623461956015b71ea 100644 --- a/Course-Management-System.API/Controllers/AuthenticationController.cs +++ b/Course-Management-System.API/Controllers/AuthenticationController.cs @@ -1,11 +1,11 @@ -using Course_Management_System.Services.DTO.RequestDTO; -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Services.DTO.RequestDTO; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Utility.CustomResponseTypes; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace Course_Management_System.API.Controllers; +namespace CourseManagementSystem.API.Controllers; [ApiController] [Route("[controller]/[Action]")] diff --git a/Course-Management-System.API/Controllers/InstructorController.cs b/Course-Management-System.API/Controllers/InstructorController.cs index 80a6b85f5045e47ae19f2639b66017f780dcbd84..998e368ec101ee23830c65b1236a8d9eefbbfb2c 100644 --- a/Course-Management-System.API/Controllers/InstructorController.cs +++ b/Course-Management-System.API/Controllers/InstructorController.cs @@ -1,23 +1,21 @@ using System.Security.Claims; -using Course_Management_System.Services.DTO.RequestDTO; -using Course_Management_System.Services.DTO.ResponseDTO; -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Services.DTO.RequestDTO; +using CourseManagementSystem.Services.DTO.ResponseDTO; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Utility.CustomResponseTypes; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace Course_Management_System.API.Controllers; +namespace CourseManagementSystem.API.Controllers; [Route("api/[controller]/[Action]")] [ApiController] public class InstructorController : ControllerBase { - private readonly IStudentServices _studentServices; private readonly IInstructorServices _instructorServices; private string _userId; - public InstructorController(IStudentServices studentServices, IInstructorServices instructorServices) + public InstructorController(IInstructorServices instructorServices) { - _studentServices = studentServices; _instructorServices=instructorServices; _userId = User.FindFirstValue(ClaimTypes.NameIdentifier); } @@ -29,35 +27,35 @@ public class InstructorController : ControllerBase return _instructorServices.AddCourse(_userId,courseRequestDTO); } - [HttpPost] + [HttpDelete] [Authorize(Roles = "Instructor")] public CustomResponse DeleteCourse(int courseId) { return _instructorServices.DeleteCourse(courseId); } - [HttpPost] + [HttpPut] [Authorize(Roles = "Instructor")] public CourseRequestDTO UpdateCourse(int courseId,CourseRequestDTO courseRequestDTO) { return _instructorServices.UpdateCourse(_userId,courseId, courseRequestDTO); } - [HttpPost] - [Authorize(Roles ="Instructor,Admin")] + [HttpGet] + [Authorize(Roles ="Admin,Instructor")] public List<UserResponseDTO> FindEnrolledStudents(int courseId) { return _instructorServices.FindEnrolledStudents(courseId); } - [HttpPost] + [HttpGet] [Authorize(Roles ="Admin,Instructor")] - List<CourseProgressResponseDTO> GetStudentProgress(string studenId, int courseId) + public List<CourseProgressResponseDTO> GetStudentProgress(string studenId, int courseId) { return _instructorServices.GetStudentProgress(studenId, courseId); } - [HttpPost] + [HttpPut] [Authorize(Roles ="Admin,Instructor")] public CourseProgressRequestDTO UpdateStudentProgress(string userId, int courseId,CourseProgressRequestDTO courseProgress) { diff --git a/Course-Management-System.API/Controllers/StudentController.cs b/Course-Management-System.API/Controllers/StudentController.cs index 5cc67ba121dbd5329b6df191b1d5033ff762ad1e..2172f2cf414de3282070edb7f0ebe14544b3c05f 100644 --- a/Course-Management-System.API/Controllers/StudentController.cs +++ b/Course-Management-System.API/Controllers/StudentController.cs @@ -1,12 +1,12 @@ -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Services.DTO.ResponseDTO; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Services.DTO.ResponseDTO; +using CourseManagementSystem.Utility.CustomResponseTypes; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Security.Claims; -namespace Course_Management_System.API.Controllers; +namespace CourseManagementSystem.API.Controllers; [ApiController] [Route("/api/[controller]/[action]")] diff --git a/Course-Management-System.API/Course-Management-System.API.csproj b/Course-Management-System.API/Course-Management-System.API.csproj index c8846d330ac809367734860ac8334165af44d276..64c0d31ba8990faf09193ec8ea2214a24c9cb593 100644 --- a/Course-Management-System.API/Course-Management-System.API.csproj +++ b/Course-Management-System.API/Course-Management-System.API.csproj @@ -5,7 +5,7 @@ <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <RootNamespace>Course_Management_System.API</RootNamespace> - <NoWarn>CS8604,CS8602</NoWarn> + <NoWarn>CS8602,CS8601,CS8604,CS8618</NoWarn> </PropertyGroup> <ItemGroup> diff --git a/Course-Management-System.API/DIConfigurationManager/DIConfigurations.cs b/Course-Management-System.API/DIConfigurationManager/DIConfigurations.cs index ef5448dc75ba37984ee0877ae10d21706ebbce22..6fb730f29b3aa5001dd697594e5f99f31f3df527 100644 --- a/Course-Management-System.API/DIConfigurationManager/DIConfigurations.cs +++ b/Course-Management-System.API/DIConfigurationManager/DIConfigurations.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Services.MappingProfile; +using CourseManagementSystem.Services.MappingProfile; -namespace Course_Management_System.API.DIConfigurationManager; +namespace CourseManagementSystem.API.DIConfigurationManager; // Ability to implement the functionality of a single class into multiple files and all these files are combined into single class file when the application is compiled. static partial class DIConfigurations diff --git a/Course-Management-System.API/Program.cs b/Course-Management-System.API/Program.cs index 7a8758ca2d2dd83651234c115ba44b1f7167d59b..0f0f9e683a6dd7bcf242fd283fd2e66df9902bfe 100644 --- a/Course-Management-System.API/Program.cs +++ b/Course-Management-System.API/Program.cs @@ -1,9 +1,9 @@ -using Course_Management_System.API.DIConfigurationManager; -using Course_Management_System.Services.DIConfigurationManager; -using Course_Management_System.Database.DIConfigurationManager; -using Course_Management_System.Database.Entities; +using CourseManagementSystem.API.DIConfigurationManager; +using CourseManagementSystem.Services.DIConfigurationManager; +using CourseManagementSystem.Database.DIConfigurationManager; +using CourseManagementSystem.Database.Entities; using Microsoft.AspNetCore.Identity; -using Course_Management_System.Database.DatabaseContext; +using CourseManagementSystem.Database.DatabaseContext; var builder = WebApplication.CreateBuilder(args); diff --git a/Course-Management-System.Database/DIConfigurationManager/DIConfigurations.cs b/Course-Management-System.Database/DIConfigurationManager/DIConfigurations.cs index aa2409063b215006067e102544b8776fafa56128..662c237285072dd86eae5177bdf2313008617dff 100644 --- a/Course-Management-System.Database/DIConfigurationManager/DIConfigurations.cs +++ b/Course-Management-System.Database/DIConfigurationManager/DIConfigurations.cs @@ -1,13 +1,13 @@ -using Course_Management_System.Database.DatabaseContext; -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Implementations; -using Course_Management_System.Database.Interfaces; -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Database.DatabaseContext; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Implementations; +using CourseManagementSystem.Database.Interfaces; +using CourseManagementSystem.Utility.Enumerations; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -namespace Course_Management_System.Database.DIConfigurationManager; +namespace CourseManagementSystem.Database.DIConfigurationManager; public static partial class DIConfigurations { diff --git a/Course-Management-System.Database/DatabaseContext/CourseManagementDbContext.cs b/Course-Management-System.Database/DatabaseContext/CourseManagementDbContext.cs index d5517c2bc0ae71cbb06ad47cd51e372f9c04be86..eeaf31e4c91b3303eb7dc5c84a045bf87f9fd72c 100644 --- a/Course-Management-System.Database/DatabaseContext/CourseManagementDbContext.cs +++ b/Course-Management-System.Database/DatabaseContext/CourseManagementDbContext.cs @@ -1,10 +1,10 @@ -using Course_Management_System.Database.DbContextConfigurations; -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.DbContextConfigurations; +using CourseManagementSystem.Database.Entities; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -namespace Course_Management_System.Database.DatabaseContext; +namespace CourseManagementSystem.Database.DatabaseContext; public class CourseManagementDbContext : IdentityDbContext<UserEntity> { diff --git a/Course-Management-System.Database/DbContextConfigurations/CourseEntityConfig.cs b/Course-Management-System.Database/DbContextConfigurations/CourseEntityConfig.cs index 002653eb34a05bd2a06f9e564906d99307177442..0225583ab68591af543c0d236e36ec3c37734389 100644 --- a/Course-Management-System.Database/DbContextConfigurations/CourseEntityConfig.cs +++ b/Course-Management-System.Database/DbContextConfigurations/CourseEntityConfig.cs @@ -1,9 +1,9 @@ -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace Course_Management_System.Database.DbContextConfigurations; +namespace CourseManagementSystem.Database.DbContextConfigurations; public class CourseEntityConfig : IEntityTypeConfiguration<CourseEntity> { diff --git a/Course-Management-System.Database/DbContextConfigurations/CourseProgressEntityConfig.cs b/Course-Management-System.Database/DbContextConfigurations/CourseProgressEntityConfig.cs index 18b33fd8a2e109553e0921bb98f807698e0eab50..004af54746a6e4578c55187fa77f292de3ebcacd 100644 --- a/Course-Management-System.Database/DbContextConfigurations/CourseProgressEntityConfig.cs +++ b/Course-Management-System.Database/DbContextConfigurations/CourseProgressEntityConfig.cs @@ -1,9 +1,9 @@ -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace Course_Management_System.Database.DbContextConfigurations; +namespace CourseManagementSystem.Database.DbContextConfigurations; public class CourseProgressEntityConfig : IEntityTypeConfiguration<CourseProgressEntity> { diff --git a/Course-Management-System.Database/DbContextConfigurations/UserEntityConfig.cs b/Course-Management-System.Database/DbContextConfigurations/UserEntityConfig.cs index f11cc30ceec3a26705880b20bd2ebf607a9ac3c0..eaeb4ca7730e8f5ab1ff23061968579846b3a125 100644 --- a/Course-Management-System.Database/DbContextConfigurations/UserEntityConfig.cs +++ b/Course-Management-System.Database/DbContextConfigurations/UserEntityConfig.cs @@ -1,9 +1,9 @@ -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace Course_Management_System.Database.DbContextConfigurations; +namespace CourseManagementSystem.Database.DbContextConfigurations; public class UserEntityConfig : IEntityTypeConfiguration<UserEntity> { diff --git a/Course-Management-System.Database/Entities/CourseEntity.cs b/Course-Management-System.Database/Entities/CourseEntity.cs index d60d97601aeac382317b63ac45bb7ccca950e7af..ea77a98d4e636e4e83f9c263b4f5abcc432913e5 100644 --- a/Course-Management-System.Database/Entities/CourseEntity.cs +++ b/Course-Management-System.Database/Entities/CourseEntity.cs @@ -1,5 +1,5 @@ -namespace Course_Management_System.Database.Entities; +namespace CourseManagementSystem.Database.Entities; public class CourseEntity { diff --git a/Course-Management-System.Database/Entities/CourseProgressEntity.cs b/Course-Management-System.Database/Entities/CourseProgressEntity.cs index 804023869da97286301c7c97a50f4533edf10fae..b2bcc23257990263f1906e438d2aafd361e46c30 100644 --- a/Course-Management-System.Database/Entities/CourseProgressEntity.cs +++ b/Course-Management-System.Database/Entities/CourseProgressEntity.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Utility.Enumerations; -namespace Course_Management_System.Database.Entities; +namespace CourseManagementSystem.Database.Entities; public class CourseProgressEntity { diff --git a/Course-Management-System.Database/Entities/UserEntity.cs b/Course-Management-System.Database/Entities/UserEntity.cs index 6245f63ec45dcc5d47f8febb842be69789aa5c7a..3c7a2efcdd88a64bb477fe4b5fe7f2f6d80a20e4 100644 --- a/Course-Management-System.Database/Entities/UserEntity.cs +++ b/Course-Management-System.Database/Entities/UserEntity.cs @@ -1,8 +1,8 @@ -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Utility.Enumerations; using Microsoft.AspNetCore.Identity; -namespace Course_Management_System.Database.Entities; +namespace CourseManagementSystem.Database.Entities; public class UserEntity : IdentityUser { diff --git a/Course-Management-System.Database/Implementations/AdminRepository.cs b/Course-Management-System.Database/Implementations/AdminRepository.cs index 5eeeebba4801c57083a4576eb190d372fa6054df..510ef9f933e118a96f8ca87421b78cfd39c97104 100644 --- a/Course-Management-System.Database/Implementations/AdminRepository.cs +++ b/Course-Management-System.Database/Implementations/AdminRepository.cs @@ -1,11 +1,11 @@ -using Course_Management_System.Database.DatabaseContext; -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Interfaces; -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Database.DatabaseContext; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Interfaces; +using CourseManagementSystem.Utility.Enumerations; using Microsoft.AspNetCore.Identity; -namespace Course_Management_System.Database.Implementations; +namespace CourseManagementSystem.Database.Implementations; public class AdminRepository : IAdminRepository { diff --git a/Course-Management-System.Database/Implementations/AuthenticationRepository.cs b/Course-Management-System.Database/Implementations/AuthenticationRepository.cs index ae4a4ae6d3684462cddf81ba67ac6cebc74a6dc8..1a465f615661b6f3b2bc33e5bcd582d9a98f9c56 100644 --- a/Course-Management-System.Database/Implementations/AuthenticationRepository.cs +++ b/Course-Management-System.Database/Implementations/AuthenticationRepository.cs @@ -1,10 +1,10 @@ -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Interfaces; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Interfaces; +using CourseManagementSystem.Utility.CustomResponseTypes; using Microsoft.AspNetCore.Identity; -namespace Course_Management_System.Database.Implementations; +namespace CourseManagementSystem.Database.Implementations; public class AuthenticationRepository : IAuthenticationRepository { diff --git a/Course-Management-System.Database/Implementations/InstructorRepository.cs b/Course-Management-System.Database/Implementations/InstructorRepository.cs index c3faa8194e761056c2f5acfeb65b5da242108a12..121a5569cb17b8dd01bbe7b53679be2130c64cac 100644 --- a/Course-Management-System.Database/Implementations/InstructorRepository.cs +++ b/Course-Management-System.Database/Implementations/InstructorRepository.cs @@ -1,10 +1,10 @@ -using Course_Management_System.Database.DatabaseContext; -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Interfaces; +using CourseManagementSystem.Database.DatabaseContext; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Interfaces; using Microsoft.AspNetCore.Identity; -namespace Course_Management_System.Database.Implementations; +namespace CourseManagementSystem.Database.Implementations; public class InstructorRepository : IInstructorRepository { diff --git a/Course-Management-System.Database/Implementations/StudentRepository.cs b/Course-Management-System.Database/Implementations/StudentRepository.cs index c749161ea05614b4718daa7f3f780681137a7b9b..0ce26101fac1a92e1d64b0c332ced63f815effc6 100644 --- a/Course-Management-System.Database/Implementations/StudentRepository.cs +++ b/Course-Management-System.Database/Implementations/StudentRepository.cs @@ -1,11 +1,11 @@ -using Course_Management_System.Database.DatabaseContext; -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Interfaces; +using CourseManagementSystem.Database.DatabaseContext; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Interfaces; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; -namespace Course_Management_System.Database.Implementations; +namespace CourseManagementSystem.Database.Implementations; public class StudentRepository : IStudentRepository { diff --git a/Course-Management-System.Database/Interfaces/IAdminRepository.cs b/Course-Management-System.Database/Interfaces/IAdminRepository.cs index 27d5cb57273449c9bd01261d0eb23c6cdbfc2dce..150d9ad06370de9be9dfcb46082afa52721e7bd8 100644 --- a/Course-Management-System.Database/Interfaces/IAdminRepository.cs +++ b/Course-Management-System.Database/Interfaces/IAdminRepository.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.Entities; -namespace Course_Management_System.Database.Interfaces; +namespace CourseManagementSystem.Database.Interfaces; public interface IAdminRepository { diff --git a/Course-Management-System.Database/Interfaces/IAuthenticationRepository.cs b/Course-Management-System.Database/Interfaces/IAuthenticationRepository.cs index 319603ea25e0c7054ae71303dea13a45b2ceaf54..ca17bb2e859c9793b4bfef21647d3de14973379d 100644 --- a/Course-Management-System.Database/Interfaces/IAuthenticationRepository.cs +++ b/Course-Management-System.Database/Interfaces/IAuthenticationRepository.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.Entities; -namespace Course_Management_System.Database.Interfaces; +namespace CourseManagementSystem.Database.Interfaces; public interface IAuthenticationRepository { diff --git a/Course-Management-System.Database/Interfaces/IInstructorRepository.cs b/Course-Management-System.Database/Interfaces/IInstructorRepository.cs index 6ca6e70ab2f5ea91aace50f85e04098d7fd21cb9..2c5536109217415a7ba19e25542288297442168f 100644 --- a/Course-Management-System.Database/Interfaces/IInstructorRepository.cs +++ b/Course-Management-System.Database/Interfaces/IInstructorRepository.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.Entities; -namespace Course_Management_System.Database.Interfaces; +namespace CourseManagementSystem.Database.Interfaces; public interface IInstructorRepository { diff --git a/Course-Management-System.Database/Interfaces/IStudentRepository.cs b/Course-Management-System.Database/Interfaces/IStudentRepository.cs index c2a38312ab62e4757e7548d3cc69ea9b9af1b0b5..4df88219f131a656a1dca228812f7ee9838021b8 100644 --- a/Course-Management-System.Database/Interfaces/IStudentRepository.cs +++ b/Course-Management-System.Database/Interfaces/IStudentRepository.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Database.Entities; +using CourseManagementSystem.Database.Entities; -namespace Course_Management_System.Database.Interfaces; +namespace CourseManagementSystem.Database.Interfaces; public interface IStudentRepository { diff --git a/Course-Management-System.Services/DIConfigurationManager/DIConfigurations.cs b/Course-Management-System.Services/DIConfigurationManager/DIConfigurations.cs index d286d6b19648c32edfa19c0e4c4d51e941f901c3..5525d01d28828064529ebbd2650647d48196792e 100644 --- a/Course-Management-System.Services/DIConfigurationManager/DIConfigurations.cs +++ b/Course-Management-System.Services/DIConfigurationManager/DIConfigurations.cs @@ -1,9 +1,9 @@ -using Course_Management_System.Services.Implementations; -using Course_Management_System.Services.Interfaces; +using CourseManagementSystem.Services.Implementations; +using CourseManagementSystem.Services.Interfaces; using Microsoft.Extensions.DependencyInjection; -namespace Course_Management_System.Services.DIConfigurationManager; +namespace CourseManagementSystem.Services.DIConfigurationManager; public static partial class DIConfigurations { diff --git a/Course-Management-System.Services/DTO/RequestDTO/CourseProgressRequestDTO.cs b/Course-Management-System.Services/DTO/RequestDTO/CourseProgressRequestDTO.cs index 420f503701758d4f0e7619167fde6b07969b969b..21bff2e039879fd9dddc9376b07faac4f1b91ed8 100644 --- a/Course-Management-System.Services/DTO/RequestDTO/CourseProgressRequestDTO.cs +++ b/Course-Management-System.Services/DTO/RequestDTO/CourseProgressRequestDTO.cs @@ -1,8 +1,8 @@ using System.ComponentModel.DataAnnotations; -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Utility.Enumerations; -namespace Course_Management_System.Services.DTO.RequestDTO; +namespace CourseManagementSystem.Services.DTO.RequestDTO; public class CourseProgressRequestDTO { diff --git a/Course-Management-System.Services/DTO/RequestDTO/CourseRequestDTO.cs b/Course-Management-System.Services/DTO/RequestDTO/CourseRequestDTO.cs index 4b0ff69636cc3e0e09eb3e01257b6bb68c026573..46d207141addd6d4c76226706e4e645e84524633 100644 --- a/Course-Management-System.Services/DTO/RequestDTO/CourseRequestDTO.cs +++ b/Course-Management-System.Services/DTO/RequestDTO/CourseRequestDTO.cs @@ -1,7 +1,7 @@ using System.ComponentModel.DataAnnotations; -namespace Course_Management_System.Services.DTO.RequestDTO; +namespace CourseManagementSystem.Services.DTO.RequestDTO; public class CourseRequestDTO { diff --git a/Course-Management-System.Services/DTO/RequestDTO/UserLoginRequestDTO.cs b/Course-Management-System.Services/DTO/RequestDTO/UserLoginRequestDTO.cs index f9c7c4e198c33a4bdd63ae670340e039edf496af..f09a822bae2343163751827761939e855500c5d1 100644 --- a/Course-Management-System.Services/DTO/RequestDTO/UserLoginRequestDTO.cs +++ b/Course-Management-System.Services/DTO/RequestDTO/UserLoginRequestDTO.cs @@ -1,8 +1,8 @@ using System.ComponentModel.DataAnnotations; -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Utility.Enumerations; -namespace Course_Management_System.Services.DTO.RequestDTO; +namespace CourseManagementSystem.Services.DTO.RequestDTO; public class UserLoginRequestDTO { diff --git a/Course-Management-System.Services/DTO/RequestDTO/UserRegisterRequestDTO.cs b/Course-Management-System.Services/DTO/RequestDTO/UserRegisterRequestDTO.cs index 35160e0d97a39073a1841c16a05b1ccaa3418645..df7df22c43952900c3c9e32c329bec81ce42ceb1 100644 --- a/Course-Management-System.Services/DTO/RequestDTO/UserRegisterRequestDTO.cs +++ b/Course-Management-System.Services/DTO/RequestDTO/UserRegisterRequestDTO.cs @@ -1,8 +1,8 @@ using System.ComponentModel.DataAnnotations; -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Utility.Enumerations; -namespace Course_Management_System.Services.DTO.RequestDTO; +namespace CourseManagementSystem.Services.DTO.RequestDTO; public class UserRegisterRequestDTO { diff --git a/Course-Management-System.Services/DTO/ResponseDTO/CourseProgressResponseDTO.cs b/Course-Management-System.Services/DTO/ResponseDTO/CourseProgressResponseDTO.cs index 483bfaf99785d9d6745dc6c154999884dc50e80c..90c7ed9925c37971befdfe41300b098a35f07a35 100644 --- a/Course-Management-System.Services/DTO/ResponseDTO/CourseProgressResponseDTO.cs +++ b/Course-Management-System.Services/DTO/ResponseDTO/CourseProgressResponseDTO.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Utility.Enumerations; +using CourseManagementSystem.Utility.Enumerations; -namespace Course_Management_System.Services.DTO.ResponseDTO; +namespace CourseManagementSystem.Services.DTO.ResponseDTO; public class CourseProgressResponseDTO { diff --git a/Course-Management-System.Services/DTO/ResponseDTO/CourseResponseDTO.cs b/Course-Management-System.Services/DTO/ResponseDTO/CourseResponseDTO.cs index b46d9082397144dd130f4059befffdc681a51c08..ef017b8cb73cb96c02e6c2e6a6d6763c0bb450b9 100644 --- a/Course-Management-System.Services/DTO/ResponseDTO/CourseResponseDTO.cs +++ b/Course-Management-System.Services/DTO/ResponseDTO/CourseResponseDTO.cs @@ -1,5 +1,5 @@ -namespace Course_Management_System.Services.DTO.ResponseDTO; +namespace CourseManagementSystem.Services.DTO.ResponseDTO; public class CourseResponseDTO { diff --git a/Course-Management-System.Services/DTO/ResponseDTO/UserResponseDTO.cs b/Course-Management-System.Services/DTO/ResponseDTO/UserResponseDTO.cs index 5060b848d727cf5f1ea06a54f527de29730535a2..6a49d48890e51285292d58703c77131ff7876ee1 100644 --- a/Course-Management-System.Services/DTO/ResponseDTO/UserResponseDTO.cs +++ b/Course-Management-System.Services/DTO/ResponseDTO/UserResponseDTO.cs @@ -1,5 +1,5 @@ -namespace Course_Management_System.Services.DTO.ResponseDTO; +namespace CourseManagementSystem.Services.DTO.ResponseDTO; public class UserResponseDTO { diff --git a/Course-Management-System.Services/Implementations/AdminServices.cs b/Course-Management-System.Services/Implementations/AdminServices.cs index f5c807fce6872aa73dfaa6f8253ee49bf56b1934..415e89b8f66662be4d1afdf50bdead1f23e02c43 100644 --- a/Course-Management-System.Services/Implementations/AdminServices.cs +++ b/Course-Management-System.Services/Implementations/AdminServices.cs @@ -1,9 +1,9 @@ -using Course_Management_System.Database.Interfaces; -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Database.Interfaces; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Implementations; +namespace CourseManagementSystem.Services.Implementations; public class AdminServices : IAdminServices { diff --git a/Course-Management-System.Services/Implementations/AuthenticationServices.cs b/Course-Management-System.Services/Implementations/AuthenticationServices.cs index 89bb9eba9a6af783b27012d5d23eea258625e195..da429b1f5ded96b8e9a12e95ed47689d20f1e818 100644 --- a/Course-Management-System.Services/Implementations/AuthenticationServices.cs +++ b/Course-Management-System.Services/Implementations/AuthenticationServices.cs @@ -1,12 +1,12 @@ using AutoMapper; -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Interfaces; -using Course_Management_System.Services.DTO.RequestDTO; -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Interfaces; +using CourseManagementSystem.Services.DTO.RequestDTO; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Implementations; +namespace CourseManagementSystem.Services.Implementations; public class AuthenticationServices : IAuthenticationServices { diff --git a/Course-Management-System.Services/Implementations/InstructorService.cs b/Course-Management-System.Services/Implementations/InstructorService.cs index 09293cd0f889fa28b173cb25370f58ca6c1480d6..a0e593248907b02843b406ab8efd73a23db9f34b 100644 --- a/Course-Management-System.Services/Implementations/InstructorService.cs +++ b/Course-Management-System.Services/Implementations/InstructorService.cs @@ -1,13 +1,13 @@ using AutoMapper; -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Interfaces; -using Course_Management_System.Services.DTO.ResponseDTO; -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Services.DTO.RequestDTO; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Interfaces; +using CourseManagementSystem.Services.DTO.ResponseDTO; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Services.DTO.RequestDTO; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Implementations; +namespace CourseManagementSystem.Services.Implementations; public class InstructorService : IInstructorServices { diff --git a/Course-Management-System.Services/Implementations/StudentServices.cs b/Course-Management-System.Services/Implementations/StudentServices.cs index 7dae0e47702ecfd340228fe33147db2db1e65713..0cc4143b1208c63f1636054e805fbeb90803bbcb 100644 --- a/Course-Management-System.Services/Implementations/StudentServices.cs +++ b/Course-Management-System.Services/Implementations/StudentServices.cs @@ -1,12 +1,12 @@ using AutoMapper; -using Course_Management_System.Database.Entities; -using Course_Management_System.Database.Interfaces; -using Course_Management_System.Services.Interfaces; -using Course_Management_System.Services.DTO.ResponseDTO; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Database.Interfaces; +using CourseManagementSystem.Services.Interfaces; +using CourseManagementSystem.Services.DTO.ResponseDTO; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Implementations; +namespace CourseManagementSystem.Services.Implementations; public class StudentServices : IStudentServices { diff --git a/Course-Management-System.Services/Interfaces/IAdminServices.cs b/Course-Management-System.Services/Interfaces/IAdminServices.cs index 9ac650fb160ba29d4c9a1aaa3204ee318c06d6bf..af01eaa2421a86c2330b01f981df4d357081bde5 100644 --- a/Course-Management-System.Services/Interfaces/IAdminServices.cs +++ b/Course-Management-System.Services/Interfaces/IAdminServices.cs @@ -1,7 +1,7 @@ -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Interfaces; +namespace CourseManagementSystem.Services.Interfaces; public interface IAdminServices { diff --git a/Course-Management-System.Services/Interfaces/IAuthenticationServices.cs b/Course-Management-System.Services/Interfaces/IAuthenticationServices.cs index e8d858bb36d298419e3ec078299560027f6eaa86..e640edbad809a59bb3d76c1425cb5c3083b50c0e 100644 --- a/Course-Management-System.Services/Interfaces/IAuthenticationServices.cs +++ b/Course-Management-System.Services/Interfaces/IAuthenticationServices.cs @@ -1,8 +1,8 @@ -using Course_Management_System.Services.DTO.RequestDTO; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Services.DTO.RequestDTO; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Interfaces; +namespace CourseManagementSystem.Services.Interfaces; public interface IAuthenticationServices { diff --git a/Course-Management-System.Services/Interfaces/IInstructorServices.cs b/Course-Management-System.Services/Interfaces/IInstructorServices.cs index 57c23c0587ff6c0af093cfcdce6f49b63eed9e0c..45bd4172eaf0da7aaa5dd08f50dfa15ada7dd860 100644 --- a/Course-Management-System.Services/Interfaces/IInstructorServices.cs +++ b/Course-Management-System.Services/Interfaces/IInstructorServices.cs @@ -1,10 +1,10 @@ -using Course_Management_System.Database.Entities; -using Course_Management_System.Services.DTO.ResponseDTO; -using Course_Management_System.Services.DTO.RequestDTO; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Services.DTO.ResponseDTO; +using CourseManagementSystem.Services.DTO.RequestDTO; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Interfaces; +namespace CourseManagementSystem.Services.Interfaces; public interface IInstructorServices { diff --git a/Course-Management-System.Services/Interfaces/IStudentServices.cs b/Course-Management-System.Services/Interfaces/IStudentServices.cs index cb315899ba66720b4945e2f1d1dd0cfc0dc50b97..a56a36e1e20f71dc23474e6ffc7ba1b7152b5fc3 100644 --- a/Course-Management-System.Services/Interfaces/IStudentServices.cs +++ b/Course-Management-System.Services/Interfaces/IStudentServices.cs @@ -1,8 +1,8 @@ -using Course_Management_System.Services.DTO.ResponseDTO; -using Course_Management_System.Utility.CustomResponseTypes; +using CourseManagementSystem.Services.DTO.ResponseDTO; +using CourseManagementSystem.Utility.CustomResponseTypes; -namespace Course_Management_System.Services.Interfaces; +namespace CourseManagementSystem.Services.Interfaces; public interface IStudentServices { diff --git a/Course-Management-System.Services/MappingProfile/AutoMapperProfile.cs b/Course-Management-System.Services/MappingProfile/AutoMapperProfile.cs index b2b6d5e8af55795b29674e7505e8ba5d84c32171..5c58ff8c749c8bb78b7a4f62730f5be06c05765f 100644 --- a/Course-Management-System.Services/MappingProfile/AutoMapperProfile.cs +++ b/Course-Management-System.Services/MappingProfile/AutoMapperProfile.cs @@ -1,10 +1,10 @@ using AutoMapper; -using Course_Management_System.Database.Entities; -using Course_Management_System.Services.DTO.ResponseDTO; -using Course_Management_System.Services.DTO.RequestDTO; +using CourseManagementSystem.Database.Entities; +using CourseManagementSystem.Services.DTO.ResponseDTO; +using CourseManagementSystem.Services.DTO.RequestDTO; -namespace Course_Management_System.Services.MappingProfile; +namespace CourseManagementSystem.Services.MappingProfile; public class AutoMapperProfile : Profile { diff --git a/Course-Management-System.Utility/CustomResponseTypes/CustomResponse.cs b/Course-Management-System.Utility/CustomResponseTypes/CustomResponse.cs index 5109a700b68b206d16b2c717b86781a4eacea7ec..932eb79be333c25b47714298548620d9bf8776d8 100644 --- a/Course-Management-System.Utility/CustomResponseTypes/CustomResponse.cs +++ b/Course-Management-System.Utility/CustomResponseTypes/CustomResponse.cs @@ -1,5 +1,5 @@ -namespace Course_Management_System.Utility.CustomResponseTypes; +namespace CourseManagementSystem.Utility.CustomResponseTypes; public class CustomResponse { diff --git a/Course-Management-System.Utility/Enumerations/Role.cs b/Course-Management-System.Utility/Enumerations/Role.cs index acb1065c6e14c3ab62ae15622100d72c22931eec..a5aaa647b636ed9dbf02d4515a6017c22d51d136 100644 --- a/Course-Management-System.Utility/Enumerations/Role.cs +++ b/Course-Management-System.Utility/Enumerations/Role.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Course_Management_System.Utility.Enumerations; +namespace CourseManagementSystem.Utility.Enumerations; [JsonConverter(typeof(JsonStringEnumConverter))] public enum Role diff --git a/Course-Management-System.Utility/Enumerations/StatusOfCourse.cs b/Course-Management-System.Utility/Enumerations/StatusOfCourse.cs index d54ccf3e101aa98fe5bae18204873f480d3c1258..c306f3114a143964fc5d9e424b19f8428f0ac831 100644 --- a/Course-Management-System.Utility/Enumerations/StatusOfCourse.cs +++ b/Course-Management-System.Utility/Enumerations/StatusOfCourse.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Course_Management_System.Utility.Enumerations; +namespace CourseManagementSystem.Utility.Enumerations; [JsonConverter(typeof(JsonStringEnumConverter))] public enum StatusOfCourse