예제 #1
0
 public LogInSession PutUserById(int id, [FromBody] LogInSession logInSession)
 {
     _context.Entry(logInSession).State = EntityState.Modified;
     _context.SaveChanges();
     return(logInSession);
 }
예제 #2
0
 public LogInSession LogInUser([FromBody] LogInSession logInSession)
 {
     _context.LoggedInUserId.Add(logInSession);
     _context.SaveChanges();
     return(logInSession);
 }