public int SaveUserLoginCredentials(tblUserLoginCredentialsDto userLoginCredentialsDto)
 {
     int result = 0;
     UserCredentialProvider objUserLoginCredentialsDataProvider = new UserCredentialProvider();
     result = objUserLoginCredentialsDataProvider.SaveUserLoginCredentials(userLoginCredentialsDto);
     return result;
 }
        public int SaveUserLoginCredentials(UserLoginCredentialBusinessObject userLoginCredentialBO)
        {
            int result = 0;
            if (ValidateUserLoginCredentials(userLoginCredentialBO))
            {
                Mapper.CreateMap<UserLoginCredentialBusinessObject, tblUserLoginCredentialsDto>();
                var userLoginCredentialsDto = new tblUserLoginCredentialsDto();
                Mapper.Map(userLoginCredentialBO, userLoginCredentialsDto);

                UserCredentialProviderDAL objRegistrationProvider = new UserCredentialProviderDAL();
                result = objRegistrationProvider.SaveUserLoginCredentials(userLoginCredentialsDto);
            }

            return result;
        }
 public int SaveUserLoginCredentials(tblUserLoginCredentialsDto userLoginCredential)
 {
     Mapper.CreateMap<tblUserLoginCredentialsDto, tblUserLoginCredential>();
     int result = 0;
     try
     {
         using (var userLoginCredentialContext = new FPUserCredentialEntities())
         {
             var userLoginCredentials = new tblUserLoginCredential();
             Mapper.Map(userLoginCredential, userLoginCredentials);
             userLoginCredentialContext.tblUserLoginCredentials.Add(userLoginCredentials);
             result = userLoginCredentialContext.SaveChanges();
         }
     }
     catch
     {
         return -1;
     }
     return result;
 }