Ignore:
Timestamp:
11/16/20 03:55:10 (2 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
db484c9
Parents:
8b13eb2
Message:

Fix bugs, add some more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/FarmatikoRepo/Repository.cs

    r8b13eb2 r8e74e2f  
    4545            var Medicines = await _context.Medicines.Select(x => new Medicine
    4646            {
     47                Id = x.Id,
    4748                Name = x.Name,
    4849                Strength = x.Strength,
     
    268269            return phmeds;
    269270        }
     271
     272        public async Task AddUser(User user)
     273        {
     274            await _context.Users.AddAsync(user);
     275            await _context.SaveChangesAsync();
     276        }
    270277    }
    271278}
Note: See TracChangeset for help on using the changeset viewer.