Example #1
0
        public CoworkingList GetAll(CoworkingSearchOptions options)
        {
            var obj = new CoworkingList();

            try
            {
                var result = SendGet(GET_ALL, options.FormOptions());
                obj.Coworkings = JsonConvert.DeserializeObject <List <Coworking> >(result);
                obj.Status     = HttpStatusCode.OK;
            }
            catch (WebException ex)
            {
                FormErrorResponse(ex, obj);
            }
            return(obj);
        }