Пример #1
0
        public IHttpActionResult SearchReport(string createdDate = null, string employeeId = null)
        {
            System.DateTime parsedDate;
            bool            convertSuccess = System.DateTime.TryParse(createdDate, out parsedDate);

            if (parsedDate == System.DateTime.MinValue)
            {
                return(Ok(_reportServices.SearchReportByEmployeeId(employeeId).Data));
            }

            return(Ok(_reportServices.SearchReport(employeeId, parsedDate).Data));
        }