/// <summary>
 /// The add user.
 /// </summary>
 /// <param name="user">
 /// The user.
 /// </param>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public int AddUser(UserDto user)
 {
     var rnd = new NativeDAL.RNDEntities();
     var tbluser = this.userTypeAdapter.Adapt<UserDto, NativeDAL.tblUser>(user);
     var result = rnd.User.Add(tbluser);
     return result;
 }
        /// <summary>
        /// The add user.
        /// </summary>
        /// <param name="user"> The user. </param>
        /// <returns> The data service response </returns>
        public DataServiceResponse<int> AddUser(UserDto user)
        {
            var responseUserDto = new DataServiceResponse<int>();
            try
            {
                responseUserDto.Response = this.userRepository.AddUser(user);
                responseUserDto.Error = null;
            }
            catch (NullReferenceException nullReferenceException)
            {
                responseUserDto.Response = 0;
                responseUserDto.Error = nullReferenceException;
            }

            return responseUserDto;
        }