public int GetUserID(string username) { string sql = $"select * from Users"; OMEN.Core.Model.Users us = _usersRepository.Query(sql).FirstOrDefault(x => x.LoginName.Equals(username)); if (us != null) { return(us.UserID); } else { return(-1); } }
public IActionResult AddUser(OMEN.Core.Model.Users users) { return(Ok()); }