コード例 #1
0
ファイル: ReportController.cs プロジェクト: Imran-shoeb/MgApp
        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));
        }