Exemple #1
0
        public string GetCategories()
        {
            string   response = String.Empty;
            Category category = new Category();

            try
            {
                category.Items = GovBidsDAL.FetchDataCategories().ToArray();
                response       = Serialize(category);
            }
            catch (Exception ex)
            {
                AvailBidResponseException exception = new AvailBidResponseException();
                exception.Error = ex.Message;
                response        = Serialize(exception);
            }
            return(response);
        }