Esempio n. 1
0
        public JsonResult GetBlock(string DistrictCode, string UpazilaCode, string UnionCode, string VillageCode)
        {
            BlockRequestParams filter = new BlockRequestParams();

            filter.DistrictCode = DistrictCode;
            filter.UpazilaCode  = UpazilaCode;
            filter.UnionCode    = UnionCode;
            filter.VillageCode  = VillageCode;
            BlockInfo block = new BlockInfo();

            return(Json(block.GetAllBlock(filter), JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
 public List <BlockIDList> GetBlockIDList(BlockRequestParams query)
 {
     try
     {
         string             sql    = string.Format("EXEC BlockIDList '{0}','{1}','{2}','{3}'", query.DistrictCode, query.UpazilaCode, query.UnionCode, query.VillageCode);
         List <BlockIDList> result = unitOfWork.GenericRepositories <BlockIDList>().GetRecordSet(sql).ToList();
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
        public JsonResult GetBlock(BlockRequestParams filter)
        {
            BlockInfo block = new BlockInfo();

            return(Json(block.GetAllBlock(filter), JsonRequestBehavior.AllowGet));
        }