public int Delete(UserClaims userClaim)
 {
     if (_database.Entry(userClaim).State == System.Data.Entity.EntityState.Detached)
     {
         dbSet.Attach(userClaim);
     }
     dbSet.Remove(userClaim);
     return this.Save();
 }
        /// <summary>
        /// Inserts a new claim in UserClaims table
        /// </summary>
        /// <param name="userClaim">User's claim to be added</param>
        /// <param name="userId">User's id</param>
        /// <returns></returns>
        /*public int Insert(Claim userClaim, string userId)
        {
            string commandText = "Insert into UserClaims (ClaimValue, ClaimType, UserId) values (@value, @type, @userId)";
            Dictionary<string, object> parameters = new Dictionary<string, object>();
            parameters.Add("value", userClaim.Value);
            parameters.Add("type", userClaim.Type);
            parameters.Add("userId", userId);

            return _database.Execute(commandText, parameters);
        }*/
        public int Insert(Claim userClaim, string userId)
        {
            var userClaimObj = new UserClaims
                            {
                                UserId = userId,
                                ClaimValue = userClaim.Value,
                                ClaimType = userClaim.Type
                            };
            dbSet.Add(userClaimObj);
            return this.Save();
        }