Beispiel #1
0
 /// <summary>
 /// Adds the or update job roles asynchronous.
 /// </summary>
 /// <param name="jobRoles">The job roles.</param>
 /// <returns></returns>
 public async Task <int> AddOrUpdateJobRolesAsync(JobRolesModel jobRoles)
 {
     using (MySqlConnection connection = GetConnection())
     {
         return(await connection.ExecuteScalarAsync <int>("AddOrUpdateJobRoles",
                                                          new
         {
             jobRoleId = jobRoles.JobRoleId,
             jobRole = jobRoles.JobRole,
             isDeleted = jobRoles.IsDeleted
         }, null, null, commandType : CommandType.StoredProcedure).ConfigureAwait(false));
     }
 }
Beispiel #2
0
 /// <summary>
 /// Adds the or update job roles asynchronous.
 /// </summary>
 /// <param name="jobRoles">The job roles.</param>
 /// <returns></returns>
 public async Task <int> AddOrUpdateJobRolesAsync(JobRolesModel jobRoles)
 {
     return(await userRepository.AddOrUpdateJobRolesAsync(jobRoles).ConfigureAwait(false));
 }