// POST api/<controller> public void Post(DocumentCategoryPoco value) { try { AzureStorageHelper.AddRowToTable(value); } catch (Exception ex) { HttpResponseMessage msg = new HttpResponseMessage(HttpStatusCode.NotFound) { Content = new StringContent(ex.Message), ReasonPhrase = ex.Message }; throw new HttpResponseException(msg); } }
// DELETE api/<controller>/5 public void Delete(DocumentCategoryPoco value) { AzureStorageHelper.RemoveRowFromTable(value); }