public Response<ResponseTutorSubjects> SaveSubjectsForTutor(SubjectsListModel objReq)
        {
            Response<ResponseTutorSubjects> response = new Response<ResponseTutorSubjects>();
            List<ResponseTutorSubjects> objResp = new List<ResponseTutorSubjects>();


            try
            {

                Tutor obj = new Tutor();
                if (CheckRequestIsvalidornot(this.Request))
                {
                    if (ModelState.IsValid)
                    {
                        if (objReq.subjectsIdList.Count == 0)
                            response.Create(false, "Atleast one subject id should be there", Messages.AppVersion, objResp);
                        else if (obj.SaveSubjectsForTutor(objReq))
                            response.Create(true, Messages.FormatMessage(Messages.Success, "Subjects saved"), Messages.AppVersion, objResp);
                        else
                            response.Create(false, Messages.ErrorOccure, Messages.AppVersion, objResp);
                    }
                    else
                        response.Create(false, ModelState.Values.FirstOrDefault().Errors.FirstOrDefault().ErrorMessage, Messages.AppVersion, objResp);

                }
                else
                {
                    response.Create(false, Messages.FormatMessage(Messages.InvalidReq), Messages.AppVersion, objResp);
                }
            }
            catch (Exception ex)
            {
                object session = new JavaScriptSerializer().Serialize(objReq);
                LogManager.Error("Error occured while Processing Webservice request :{0}", ex, session, ex.Message);
                response.Create(false, Messages.FormatMessage(Messages.ErrorOccure), Messages.AppVersion, objResp);
            }
            return response;
        }
 public Response<RespIsTutor> IsApprovedTutor(Entity objReq)
 {
     Response<RespIsTutor> response = new Response<RespIsTutor>();
     List<RespIsTutor> objResp = new List<RespIsTutor>();
     try
     {
         var obj = new Tutor();
         if (CheckRequestIsvalidornot(this.Request))
         {
             //  var resp = obj.IsApprovedTutor(objReq);
             objResp.Add(obj.IsApprovedTutor(objReq));
             response.Create(true, Messages.FormatMessage(Messages.Success, "Tutor "), Messages.AppVersion, objResp);
         }
         else
         {
             response.Create(false, Messages.FormatMessage(Messages.InvalidReq), Messages.AppVersion, objResp);
         }
     }
     catch (Exception ex)
     {
         object session = new JavaScriptSerializer().Serialize(objReq);
         LogManager.Error("Error occured while Processing Webservice request :{0}", ex, session, ex.Message);
         response.Create(false, Messages.FormatMessage(Messages.ErrorOccure), Messages.AppVersion, objResp);
     }
     return response;
 }
        public Response<ResponseTutorSubjects> GetSubjectsForTutor(Entity objReq)
        {
            Response<ResponseTutorSubjects> response = new Response<ResponseTutorSubjects>();
            List<ResponseTutorSubjects> objResp = new List<ResponseTutorSubjects>();


            try
            {

                Tutor obj = new Tutor();
                if (CheckRequestIsvalidornot(this.Request))
                {

                    objResp = obj.GetSubjectsForTutor(objReq);
                    response.Create(true, "Subjects List", Messages.AppVersion, objResp);
                }
                else
                {
                    response.Create(false, Messages.FormatMessage(Messages.InvalidReq), Messages.AppVersion, objResp);
                }
            }
            catch (Exception ex)
            {
                object session = new JavaScriptSerializer().Serialize(objReq);
                LogManager.Error("Error occured while Processing Webservice request :{0}", ex, session, ex.Message);
                response.Create(false, Messages.FormatMessage(Messages.ErrorOccure), Messages.AppVersion, objResp);
            }
            return response;
        }