public object AttendanceSave([FromBody] AttendanceParameterscs atteobj)
        {
            Homeworkbussinesslayer bhobj = new Homeworkbussinesslayer();


            var result = bhobj.SaveAttendance(atteobj);

            //  bhobj.StudentsMethod(hobj);

            return(result);
        }
Exemple #2
0
        public object HomeworkSave([FromBody] homeworkparameters hobj)
        {
            Homeworkbussinesslayer bhobj = new Homeworkbussinesslayer();


            var result = bhobj.Savehomework(hobj);

            //  bhobj.StudentsMethod(hobj);

            return(result);
        }
Exemple #3
0
        public object HomeworkSave([FromBody] homeworkparameters hobj)
        {
            Homeworkbussinesslayer bhobj = new Homeworkbussinesslayer();


            bhobj.Savehomework(hobj);
            //  bhobj.StudentsMethod(hobj);


            return(new Results
            {
                IsSuccess = true,
                Message = "Homework assign successfully"
            });
        }
Exemple #4
0
 public object TestNotification(homeworkparameters obj)
 {
     try
     {
         Homeworkbussinesslayer objp = new Homeworkbussinesslayer();
         var homemworkresult         = objp.SendNotificaiton(obj);
         return(homemworkresult);
     }
     catch (Exception e)
     {
         return(new Error()
         {
             IsError = true, Message = e.Message
         });
     }
 }
Exemple #5
0
        public object HomeworkSave()
        {
            homeworkparameters obj = new homeworkparameters();

            try
            {
                Homeworkbussinesslayer objp = new Homeworkbussinesslayer();
                var homemworkresult         = objp.FileUpload(obj);
                return(homemworkresult);
            }
            catch (Exception e)
            {
                return(new Error()
                {
                    IsError = true, Message = e.Message
                });
            }
        }