Example #1
0
        public IHttpActionResult GetActivityReport(long id)
        {
            var b = arsvc.GetActivityReport(id);

            if (b == null)
            {
                return(NotFound());
            }
            return(Ok(ActivityReportDto.FromActivityReport(b)));
        }
Example #2
0
 // GET: api/ActivityReports?userId=xyz
 public IEnumerable <ActivityReportDto> GetActivityReports(String userId)
 {
     return(arsvc.GetActivityReports(userId).Select(b => ActivityReportDto.FromActivityReport(b)));
 }