public int Insert(UsersEntity user) { using (var db = new SqlConnection(_config)) { const string sql = "INSERT INTO Users (FirstName, LastName, Email, UserType, EafAccount, OrganizationId) " + "VALUES(@FirstName, @LastName, @Email, @UserType, @EafAccount, @OrganizationId)"; return(db.Execute(sql, user)); } }
public void Create(UsersEntity user) { var insert = _userRepo.Insert(user); }