public async Task <bool> CreateMultiRAsync(List <ApplicationRolePermission> lst)
        {
            var result = true;
            var delete = await _adapter.ExecuteSingle <int>(DataHelper.GenParams("Id", lst[0].RoleId), "usp_Role_Permission_Delete");

            if (lst[0].PermissionId != 0)
            {
                result = await _adapter.ExecuteMultiple(lst, "usp_Role_Permission_Create") > 0;
            }
            return(result);
        }
        public async Task <DataService <int> > CreateMultipleAsync <T>(List <T> objs)
        {
            var type = typeof(T);

            try
            {
                var ret = await _adapter.ExecuteMultiple <T>(objs, DataHelper.StoreProcedure(type, DataHelper.ApiCRUD.Create), "", DataHelper.GetInstance(type));

                return(ret.FlushData());
            }
            catch (Exception ex)
            {
                return(ex.FatalException <int>());
            }
        }