Пример #1
0
 public ActionResult List(SearchDocument objS)
 {
     if (Convert.ToString(Session["TranslatorId"]).Trim().Length > 0)
     {
         TranslatorBusinessService obj = new TranslatorBusinessService();
         if (objS.TranslatorId == 0)
         {
             objS.TranslatorId = Convert.ToInt64(Session["TranslatorId"]);
         }
         return(View(obj.Documents(objS)));
     }
     else
     {
         return(View("Login"));
     }
 }
Пример #2
0
        public IHttpActionResult SearchDocuments(SearchDocument objS)
        {
            TranslatorBusinessService objTBS = new TranslatorBusinessService();

            return(Ok(objTBS.Documents(objS)));
        }