public HttpResponseMessage SearchAllFiles()
        {
            bal = new T_Planing_Action_AfterAppliedCoatingBAL();
            ResposeType         response   = new ResposeType();
            HttpResponseMessage mapMessage = null;

            T_Planing_Action_AfterAppliedCoatingDTO dto = null;
            List <T_Planing_File> objList = null;

            try
            {
                var context = HttpContext.Current;

                dto = ConvertX.GetReqeustForm <T_Planing_Action_AfterAppliedCoatingDTO>();

                logger.debug("PlanActionAfterAppliedCoatingController SearchAllFiles dto:" + dto.ToString());
                objList = bal.FindAllFiles(dto);

                if (!ObjUtil.isEmpty(objList))
                {
                    foreach (T_Planing_File file in objList)
                    {
                        file.HtmlFile = System.Web.VirtualPathUtility.ToAbsolute(planPath + "/" + file.PID + "/" + file.UploadType + "/" + file.FileName);
                        string fullPath = context.Server.MapPath(planPath) + @"\" + file.PID + @"\" + file.UploadType + @"\" + file.FileName;
                        file.Base64File = Utility.convertFileToBase64(fullPath);
                    }
                }

                response.statusCode = true;
                response.data       = objList;
            }
            catch (Exception ex)
            {
                logger.error("PlanActionAfterAppliedCoatingController SearchAllFiles error:" + ex.ToString());
                response.statusText = ex.ToString();
            }

            mapMessage = Request.CreateResponse(HttpStatusCode.OK, response);
            return(mapMessage);
        }
        public HttpResponseMessage SearchAllDryFilms()
        {
            bal = new T_Planing_Action_AfterAppliedCoatingBAL();
            ResposeType         response   = new ResposeType();
            HttpResponseMessage mapMessage = null;

            T_Planing_Action_AfterAppliedCoatingDTO dto = null;
            List <T_Planing_Action_AfterAppliedCoating_DryFilmDTO> objList = null;

            try
            {
                var context = HttpContext.Current;

                dto = ConvertX.GetReqeustForm <T_Planing_Action_AfterAppliedCoatingDTO>();

                logger.debug("PlanActionAfterAppliedCoatingController SearchAllDryFilms dto:" + dto.ToString());
                objList = bal.FindAllDryFilms(dto);

                response.statusCode = true;
                response.data       = objList;
            }
            catch (Exception ex)
            {
                logger.error("PlanActionAfterAppliedCoatingController SearchAllDryFilms error:" + ex.ToString());
                response.statusText = ex.ToString();
            }

            mapMessage = Request.CreateResponse(HttpStatusCode.OK, response);
            return(mapMessage);
        }