public async Task <ActionResult <IEnumerable <SimulateTestModel> > > GetSimtest(string Id)
        {
            // map model to entity
            var d = await _context.Simtest.Where(x => x.EmailId == Id).ToListAsync();

            List <SimulateTestModel> sm = new List <SimulateTestModel>();
            int count = 1;

            foreach (var item in d)
            {
                SimulateTestModel md = new SimulateTestModel();
                md.SerialNumber = count++;
                md.Percentage   = item.Percentage;
                md.TestId       = item.TestId;
                md.TestName     = item.TestName;
                sm.Add(md);
            }

            return(sm);
        }
 void Assign(SimulateTestModel item) => Console.WriteLine($"Remove item: {item.TestId}");
 void Add(SimulateTestModel item) => Console.WriteLine($"Edit item: {item.TestId}");