Develop a .NET 6 user controller for the School Management System. Implement CRUD operations (Create, Read, Update, Delete) for user records. Table properties include: UserId, Photo, Email, Password, FullName, UserName, PhoneNumber, BirthDate, CreatedOn, CreatedBy, and Status. Additionally, include functionality to lock/unlock students by changing their status from 1 to 2. The delete endpoint changes the status to 9.
Develop a .NET 6 user controller for the School Management System. Implement CRUD operations (Create, Read, Update, Delete) for user records. Table properties include: UserId, Photo, Email, Password, FullName, UserName, PhoneNumber, BirthDate, CreatedOn, CreatedBy, and Status. Additionally, include functionality to lock/unlock students by changing their status from 1 to 2. The delete endpoint changes the status to 9.