public BasicResponse <AreaInfo> GetAreaById(AreaGetRequest arearequest)
        {
            var result       = _Repository.GetAreaById(arearequest.Id);
            var areaInfo     = ObjectConverter.Copy <AreaModel, AreaInfo>(result);
            var arearesponse = new BasicResponse <AreaInfo>();

            arearesponse.Data = areaInfo;
            return(arearesponse);
        }
Beispiel #2
0
 /// <summary>
 /// TOP API: areaCode.get
 /// </summary>
 public List <Area> AreaCodeGet(AreaGetRequest request)
 {
     return(client.Execute(request, new AreaGetParser(), true));
 }