Пример #1
0
 public HttpResponseMessage Get()
 {
     try
     {
         var result = CalendarBusiness.Get();
         return(Request.CreateResponse(HttpStatusCode.OK, result));
     }
     catch (Exception exc)
     {
         var logId = LogBusiness.Error(exc);
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, new ErrorModel(logId)));
     }
 }
Пример #2
0
        public void CalendarGetTest()
        {
            var actual = CalendarBusiness.Get();

            Assert.IsTrue(actual.Count() > 0);
        }