Пример #1
0
 public string addHomeWorkUpload(HomeWorkUpload homeworkUpload)
 {
     try
     {
         int homeworkid = objUserInfoDAL.getHomeWorkId(homeworkUpload.hw_teacher_id, homeworkUpload.hw_subject_id);
         homeworkUpload.homework_id = homeworkid;
         homeworkUpload.isactive    = true;
         objUserInfoDAL.addHomeWorkUpload(homeworkUpload);
         return("Success");
     }
     catch (Exception ex)
     {
         CubitExceptionUtility.CubitExceptionLog(ex.Message + "BAL: Error while add HomeWork Upload" + ex.StackTrace + " " + ex.InnerException, this.GetType().BaseType.Name.ToString(), DateTime.Now.ToLongTimeString(), DateTime.Now.ToLongDateString());
         return("Error");
     }
 }