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)); }
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; } }
public JsonResult GetBlock(BlockRequestParams filter) { BlockInfo block = new BlockInfo(); return(Json(block.GetAllBlock(filter), JsonRequestBehavior.AllowGet)); }