public long AddRole(int ID, string roleName)
        {
            role r = new role
            {
                userid   = ID,
                rolename = roleName
            };

            return(dapperTools.Insert(r));
        }
Example #2
0
 public long Insert(Users obj)
 {
     try
     {
         return(_dapper.Insert <Users>(obj));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 public long Insert(TEntity entity)
 {
     return(dapper.Insert <TEntity>(entity));
 }