Esempio n. 1
0
 public IHttpActionResult GetFamilyServeDays(int contactId, long from = 0, long to = 0)
 {
     return(Authorized(token =>
     {
         try
         {
             var servingDays = _serveService.GetServingDays(token, contactId, from, to);
             return Ok(servingDays);
         }
         catch (Exception exception)
         {
             var apiError = new ApiErrorDto("Get Family Serve Days Failed", exception);
             throw new HttpResponseException(apiError.HttpResponseMessage);
         }
     }));
 }