示例#1
0
        public async Task <IActionResult> GetDetails(string Name)
        {
            try
            {
                _log4net.Info("Get MedicineListDetails by  medicine name");
                var details = await _repo.GetName(Name);

                if (details == null)
                {
                    return(BadRequest());
                }

                return(Ok(details));
            }
            catch
            {
                _log4net.Error("Error in Getting Medicine Details");
                return(new NoContentResult());
            }
        }