public ActionResult viewTiming(int?id)
        {
            enumerable s = new enumerable();
            hospital_managementEntities db = new hospital_managementEntities();

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Register_doctor p = db.Register_doctor.Find(id);

            if (p == null)
            {
                return(HttpNotFound());
            }
            else
            {
                List <Addtimingviewmodel> list = new List <Addtimingviewmodel>();
                foreach (Doctor_timing d in db.Doctor_timing)
                {
                    if (d.id_doctor == id)
                    {
                        Addtimingviewmodel model = new Addtimingviewmodel();
                        model.Day       = d.Day;
                        model.Doctor_id = d.id_doctor;
                        model.Timing    = d.Timing;
                        list.Add(model);
                    }
                }
                return(View(list));
            }
        }
        public ActionResult Addtiming(int?id)
        {
            enumerable s = new enumerable();
            hospital_managementEntities db = new hospital_managementEntities();

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Register_doctor p = db.Register_doctor.Find(id);

            if (p == null)
            {
                return(HttpNotFound());
            }
            else
            {
                return(View());
            }
        }
Ejemplo n.º 3
0
 public static (T[] False, T[] True) SplitOn <T>(this IEnumerable <T> enumerable, Func <T, bool> groupSelector) => SplitOn(enumerable, groupSelector, x => x);
Ejemplo n.º 4
0
 => (enumerable.AsyncProvider ?? throw AsyncProviderUtilities.NoAsyncProviderException()).SelectMany(enumerable, selector);
Ejemplo n.º 5
0
 => (enumerable.AsyncProvider ?? throw AsyncProviderUtilities.NoAsyncProviderException()).Take(enumerable, amount);
Ejemplo n.º 6
0
 => (enumerable.AsyncProvider ?? throw AsyncProviderUtilities.NoAsyncProviderException()).TakeWhile(enumerable, asyncPredicate);
Ejemplo n.º 7
0
 => (enumerable.AsyncProvider ?? throw AsyncProviderUtilities.NoAsyncProviderException()).SkipWhile(enumerable, predicate);
Ejemplo n.º 8
0
 ? new VariableQueryArgumentList(enumerable, surrogate.ElementType)