public object AttendanceSave([FromBody] AttendanceParameterscs atteobj) { Homeworkbussinesslayer bhobj = new Homeworkbussinesslayer(); var result = bhobj.SaveAttendance(atteobj); // bhobj.StudentsMethod(hobj); return(result); }
public object HomeworkSave([FromBody] homeworkparameters hobj) { Homeworkbussinesslayer bhobj = new Homeworkbussinesslayer(); var result = bhobj.Savehomework(hobj); // bhobj.StudentsMethod(hobj); return(result); }
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" }); }
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 }); } }
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 }); } }