public List <getAllClassficationbySiteDTO> GetAllClassification(getClassficationDTO objBranch)
        {
            List <getAllClassficationbySiteDTO> site = new List <getAllClassficationbySiteDTO>();

            using (DbLayer dbLayer = new DbLayer())
            {
                SqlCommand SqlCmd = new SqlCommand("spSelectCustomerSiteMapping");
                SqlCmd.Parameters.AddWithValue("@CustomerId", objBranch.CustomerId);
                SqlCmd.Parameters.AddWithValue("@BranchId", objBranch.BranchId);
                SqlCmd.Parameters.AddWithValue("@SiteId", objBranch.SiteId);
                SqlCmd.Parameters.AddWithValue("@ActionBy", objBranch.ActionBy);
                SqlCmd.CommandType = CommandType.StoredProcedure;
                site = dbLayer.GetEntityList <getAllClassficationbySiteDTO>(SqlCmd);
            }
            return(site);
        }
        public HttpResponseMessage getClassification(getClassficationDTO classification)
        {
            HttpResponseMessage message;

            try
            {
                // SiteMappingDataAccessLayer dal = new SiteMappingDataAccessLayer();
                var dynObj = new { result = _Site.GetAllClassification(classification) };
                message = Request.CreateResponse(HttpStatusCode.OK, dynObj);
            }
            catch (Exception ex)
            {
                message = Request.CreateResponse(HttpStatusCode.BadRequest, new { msgText = "Something wrong. Try Again!" });

                ErrorLog.CreateErrorMessage(ex, "SiteMapping", "getClassification");
            }
            return(message);
        }