Example #1
0
        public ActionResult <GetTimesheetsWrapperResponse> GetTimesheets()
        {
            var code       = HttpStatusCode.OK;
            var timesheets = _ITimesheetService.GetAllTimesheets();
            var source     = $"{Constants.Source.TimesheetPrefixName}";

            try
            {
                return(new GetTimesheetsWrapperResponse(code, timesheets, source));
            }
            catch
            {
                return(NotFound());
            }
        }