public IResponse <ApiResponse> AllocateSubject([FromBody] TimetableAllocationModal timetableAllocationModal)
        {
            string Result = eventService.AllocateSubjectService(timetableAllocationModal);

            Result = eventService.TimetableByFilterService(timetableAllocationModal.ClassDetailUid);
            return(BuildResponse(Result, System.Net.HttpStatusCode.OK));
        }
예제 #2
0
 public string AllocateSubjectService(TimetableAllocationModal timetableAllocationModal)
 {
     DbParam[] param = new DbParam[]
     {
         new DbParam(timetableAllocationModal.TimetableUid, typeof(System.String), "_TimetableUid"),
         new DbParam(timetableAllocationModal.ClassDetailUid, typeof(System.String), "_ClassDetailUid"),
         new DbParam(userDetail.schooltenentId, typeof(System.String), "_TanentUid"),
         new DbParam(timetableAllocationModal.RulebookUid, typeof(System.String), "_RulebookUid"),
         new DbParam(timetableAllocationModal.SubstitutedFacultiUid, typeof(System.String), "_SubstitutedFacultiUid"),
         new DbParam(timetableAllocationModal.FacultyUid, typeof(System.String), "_FacultyUid"),
         new DbParam(timetableAllocationModal.SubjectUid, typeof(System.String), "_SubjectUid"),
         new DbParam(timetableAllocationModal.Period, typeof(System.Int32), "_Period"),
         new DbParam(timetableAllocationModal.WeekDayNum, typeof(System.Int32), "_WeekDayNum"),
         new DbParam(userDetail.UserId, typeof(System.String), "_AdminId")
     };
     OutParam = db.ExecuteNonQuery("sp_Timetable_InsUpt", param, true);
     return(OutParam);
 }