Ejemplo n.º 1
0
        public async Task <jsonResult> searchReserve(string Date)
        {
            var data = await turnsRepository.searchList(Date.Replace('$', '/'));

            if (data.Any())
            {
                return(jsonResult.GetJsonResult((int)DoctorOffice.Enums.constantConcepts.httpStatus.successed, DoctorOffice.Enums.constantConcepts.httpStatus.successed.ToString(), "/PatientsPanel/reserveList", JsonConvert.SerializeObject(data)));
            }

            return(jsonResult.GetJsonResult((int)DoctorOffice.Enums.constantConcepts.httpStatus.notFound, DoctorOffice.Enums.constantConcepts.httpStatus.notFound.ToString(), "", ""));
        }
Ejemplo n.º 2
0
        public async Task <IEnumerable <SecretaryReserveList_ViewModel> > searchList(string reserveDate)
        {
            var s = await turnsRepository.searchList(reserveDate);

            return(s);
        }