async Task <bool> IAddRepository <AdminModel, bool> .AddAsync(AdminModel model) { try { var taskConnection = sqlClientDbProviders.GetConnectionAsync(); var taskParameter = base.SetParameterAsync("Add-Admin", model); var taskAdd = await base .DapperFluent ?.Value ?.SqlOpenConnection(await taskConnection) ?.SqlParameter(async() => await taskParameter) ?.SqlCommand(async(dbConnection, dynamicParameter) => { var queryData = (await dbConnection ?.QueryFirstAsync <MessageModel>("Admin.uspSetAdmin", param: dynamicParameter, commandType: CommandType.StoredProcedure) ) ?.Message; return((queryData.Contains("Insert")) ? true : false); }) ?.ResultAsync <bool>(); if (taskAdd == true) { EventStoreHandler?.Invoke(this, model); } return(taskAdd); } catch { throw; } }