public static dataRS.User ToModelData(this objRS.User source)
 {
     return(new dataRS.User()
     {
         CreatedBy = source.CreatedBy,
         CreatedDate = source.CreatedDate,
         Email = source.Email,
         Id = source.Id,
         InstallationId = source.InstallationId,
         IsActive = source.IsActive,
         IsDeleted = source.IsDeleted,
         LastLoginDate = source.LastLoginDate,
         Name = source.Name,
         UpdatedBy = source.UpdatedBy,
         UpdatedDate = source.UpdatedDate,
         UserName = source.UserName,
     });
 }
 public async Task <int> UpdateUser(objModel.User user)
 {
     return(await _db.GetAsyncConnection().UpdateAsync(user.ToModelData()));
 }