Exemplo n.º 1
0
        /// <summary>
        ///    Get all part and location mapping for testmaster
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public JsonResult GetAllLocationAndPartMasterMapping(int testMasterid = 0)
        {
            List <usp_GetLocationAndPartMapping>      testMasterMappingLocationAndParameterList = new List <usp_GetLocationAndPartMapping>();
            List <GetLocationAndPartMappingViewModel> masterMappingLocationAndParameterList     = new List <GetLocationAndPartMappingViewModel>();

            testMasterMappingLocationAndParameterList = testMasterMappingService.GetAllLocationAndPartMasterMapping(testMasterid).ToList();

            masterMappingLocationAndParameterList = Mapper.Map <List <GetLocationAndPartMappingViewModel> >(testMasterMappingLocationAndParameterList);
            var jsonData = new { rows = masterMappingLocationAndParameterList };

            return(Json(jsonData, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public IHttpActionResult GetAllLocationAndPartMasterMapping(int testMasterid, string redirect)
        {
            List <Usp_GetLocationAndPartMappingViewModel> objgetAllLocationAndPartMasterMapping;

            objgetAllLocationAndPartMasterMapping = cache.GetOrSet("GetAllLocationAndPartMasterMapping", () => itestMasterMappingService.GetAllLocationAndPartMasterMapping(testMasterid), bool.Parse(redirect)).ToList();
            return(Ok(objgetAllLocationAndPartMasterMapping));
        }